Subpartition with MOD Function in Oracle 11g

Hi All,
Can we create Subpartition based on MOD Function in Oracle 11g ?

Hi!
What are you refering with "MTS"? Anybody knows a term like this (except MultiThreaded Server).

Similar Messages

  • Help with OBIEE reports on Oracle 11g Cube

    Hi,
    We have created a 4-Dimensional Oracle 11g cube using AWM 11g and have integrated that with the OBIEE repository using the Dimension Hierarchy views as created by AWM.
    Now, when we create a “table” type of report with this cube in OBIEE Answers, all goes fine – we can see all the expected data in the report. However, if we create a “pivot table” type of report using the same selection (query) criteria as in the “table” type of report, then all the cells corresponding to the measure columns show up as blank (empty) – no data is populated in the measure cells. This happens regardless of the positioning of the 4 dimensions in the pivot table - columns, sections, and pages.
    Are we missing something in the repository/report setup here? Any help is much appreciated.
    Thanks and Regards,
    Piyush
    Our Environment:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    AWM v11.1.0.6.0A
    Cube Type: OLAP 11g
    Oracle Business Intelligence Enterprise Edition 10.1.3.3.2
    Any help on this thread is much appreciated.
    Thanks,
    Piyush
    Message was edited by:
    P_S

    Hi Marcus,
    I have now been able to resolve this issue. Here's a summary of what happened in my case:
    Cause of Problem –
    The default aggregation method for the measures is set to "None" in the OBIEE repository.
    Resolution -
    In OBIEE answers pivot table report, click on the "More Options..." icon next to the measure name in the measures column. Then select "Aggregation Rule > Sum" and this should do the trick !!
    (Please note that in the as-is situation, you will see that the Aggregation Rule is set to Default - you have to change this to SUM).
    This is how it worked for me.
    Hope this helps. Please do let me know how you get on with this.
    Best Regards,
    Piyush

  • Conversion functions in Oracle 11g Express;HEXTORAW &RAWTOHEX

    hi everybody !
    hextoraw ('0041') must return A but it doesn't return this value ,,it returns 0041
    I'm using Oracle 11g Express
    select hextoraw('0041') from dual; --> 0041 ? but must return A
    why is that ?
    please help me
    thank you

    Hextoraw takes your hexadecimal 41 and transforms to a single byte containing the decimal value 65 in a RAW datatype.
    But a RAW datatype can contain anything - it can be binary data, it can be text data.
    So your client cannot safely just show it as text - it performs an implicit rawtohex for you and displays the RAW data in hexadecimal form:
    SQL> select hextoraw('414243') val from dual;
    VAL
    414243You need to explicitly tell Oracle that this particular RAW value is actually text and not something binary.
    For that you can use a casting function:
    SQL> select utl_raw.cast_to_varchar2(hextoraw('414243')) val from dual;
    VAL
    ABCWhen cast to a varchar2, Oracle now knows it is text data and can display it.

  • How to migrate data fSQL server 2005 Tables with image column To ORACLE 11g

    Hi ....
    I am in the middle of migrating our database from sqlserver 2005 version to ORACLE 11g instance, and i'm facing a problem when trying to load data into one of the oracle table which has blob column and some more. The data file was extracted from sql server 2005 table which has image column and some more. All other columns are sinking with the migration as expected but the image column is not getting loaded into oralce blob.
    I tried loading data using sqlloader.
    Is there any other way to migrate data directly between these two versions of database?. Pls help...
    Edited by: user13310523 on 21-Jun-2010 23:48

    Welcome to the forum,
    Hi,
    To link Oracle with SQL Server follow this steps:
    1-Install Oracle ODBC drivers on the server (your local Oracle database) that will access the remote SQL Server database using the database link.
    2. Setup the ODBC connection on the local Oracle database using the Windows ODBC Data Source Administrator
    3. Test the ODBC drivers to ensure that connectivity is made to the SQL Server database.
    4. Ensure that your global_names parameter is set to False.
    5. Configure the Oracle Heterogeneous services by creating an initodbc.ora file within the Oracle database.
    7. Modify the Listener.ora file.
    SID_NAME is the DSN for the remote database.
    ORACLE_HOME is the actual Oracle home file path.
    PROGRAM tells Oracle to use heterogeneous services.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME=Cas30C) -- Enter the DSN on this line
    (ORACLE_HOME = c:\oracle10gdb) -- Enter your Oracle home on this line
    (PROGRAM = hsodbc) ) )
    8. Modify the Tnsnames.ora file. This is the Oracle database installation accessed by the users to connect to the ODBC drivers
    (DESCRIPTION=
    (ADDRESS_LIST=
    (Address=(PROTOCOL=TCP)
    (HOST=
    -- (Server x)
    (PORT=1521))) -- Enter the port on which the server x Oracle installation
    -- is listening
    (CONNECT_DATA=(SID=Cas30c)) - Enter the DSN name
    (HS=OK) -- Enter this value. It tells Oracle to use hetergeneous services
    9. Reload the listener on local Oracle database
    10. Create a database link on the local Oracle installation that accesses the heterogeneous connection, which, in turn, connect to SQL Server.
    11. Run a SQL Server Select statement from the Oracle installation using the database link
    Thanks
    BelMan :)

  • Equivalent of DB2  functions in ORACLE 11g

    Hi,
    I am trying to convert the SQL queries written in DB2 to ORACLE. There are some db2 specific functions are used in the queries.I am not able to find the equivalent function in ORACLE. The function names are written below:
    1) DateDD()
    2) SELECT @@IDENTITY
    3) SELECT *
    FROM (
    SELECT ROWNUMBER() OVER() AS rowId_1, INNER_TABLE.*
    FROM (----)as innertable
    ) AS Outertable
    Error is: ROWNUMBER is INVALID identifier.
    4) DAYOFWEEK()
    5) DAYS()
    6) dayofyear()
    Please help me in finding the equivalent function in ORACLE.
    Thanks in advance!!

    You probably don't need a DateAdd function in Oracle. You can add a number to a date in Oracle-- that adds the number of days to the date.
    SELECT sysdate today, sysdate+1 tomorrow
      FROM dualWhy are you using DAYS()? If, as in the example, you're just trying to determine the number of days between two dates, you can subtract dates in Oracle and the difference will be a number of days (including a fractional component if applicable)
    SELECT date '2011-09-27' - date '2011-09-25' difference_in_days
      FROM dualIf you really need the number of days since January 1, 0001, you could subtract the date from Jan 1, 0001, i.e.
    SELECT date '2011-09-27' - date '0001-01-01'
      FROM dualI would assume that Oracle and DB2 would return the same number but there could well be some differences since the current calendar didn't exist in the year 1 and I know there were issues in the transition from the Gregorian to the Julian calendar where some days were decreed not to exist. It wouldn't shock me if Oracle and DB2 counted some of the days in the 1500's differently.
    Justin

  • Interactive report with apex 3.2 oracle 11g

    Hello all,
    We are using oracle apex 3.2 oracle 11g .
    i am using interactive reports using apex where the query is a outer join. In the interactive rport i am using collections frame work. apex_collection.create_collection_from_query_b
    I am getting the following error ..
    ORA-04030 OUT OF PROCESS MEMORY WHEN TRYING TO ALLOCATE 16328 BYTES
    Pls let me know .
    thanks/kumar

    Are you saying the you are creating a collection using the create_collection_from_query_b API and then using the select c001,c002,.. from apex_collections in the Query of the IR?
    Is the creation of the collection failing (process) or the collection is getting created and you are getting the error when region tries to render the report?
    Regards

  • Developer 6i with patch 18 and oracle 11g connection issue

    hi ,
    I installed Oracle database 11g on server ,
    when login to my application and open any form or report ,get oracle connection
    user and password
    what should i do ?
    please help me

    so, canot use dev 6i?I'm afraid you can't. Not certified doesn't necessarily mean it won't work, but if you have problems, you're on your own...
    Of course you have two solutions : use 10g DB, or upgrade your forms to 10g. What's the problem for the latter ?

  • SQL Procedure doesn't work with "current of cursor" Oracle 11g

    hi all
    i have written a procedure which should update every row for a given column on a given table.
    here is the code:
    CREATE OR REPLACE PROCEDURE "xxx"."loop_update_autowert_x"
    startwert number,
    column_name VARCHAR2,
    table_name varchar2
    AS
    stmt varchar2(2000);
    stmt2 varchar2(2000);
    zaehler number;
    sum_gesamt number;
    TYPE obj_ref_type IS REF CURSOR;
    obj_cur obj_ref_type;
    begin
    stmt2:='select rownum , rowid from ' || table_name || ' for update';
    OPEN obj_cur FOR stmt2;
    dbms_output.enable(1000000);
    dbms_output.put_line ('Startwert ist: ' ||startwert);
    dbms_output.put_line ('Column Name ist: ' ||column_name);
    dbms_output.put_line ('Table Name ist: ' ||table_name);
    loop
    fetch obj_cur into zaehler , my_rowid;
    exit WHEN obj_cur%NOTFOUND;
    sum_gesamt:=zaehler + startwert;
    stmt:='update ' || table_name || ' set ' || column_name || ' = ' || sum_gesamt || ' WHERE current of obj_cur';
    dbms_output.put_line (stmt);
    execute immediate stmt;
    end loop;
    close obj_cur;
    end;
    the error i get is:
    Anmeldung bei der Datenbank Oracle Test2.
    ORA-03001: Funktion nicht implementiert
    ORA-06512: in "xxx.loop_update_autowert_x", Zeile 29
    ORA-06512: in Zeile 10
    Startwert ist: 5
    Column Name ist: a
    Table Name ist: T
    update T set a = 6 WHERE current of obj_cur
    Prozess beendet.
    Abmeldung von der Datenbank Oracle Test2.
    have anybody an idea what is wrong or is this construction with the clause "open cursor for statement" not possible with where current of cursor
    thx for helping
    best regards
    Hans-Peter

    Hello
    You're using rownum in your query so why not just use it in the update?
    CREATE OR REPLACE PROCEDURE "xxx"."loop_update_autowert_x" (
       startwert      NUMBER,
       column_name    VARCHAR2,
       table_name     VARCHAR2)
    AS
       stmt         VARCHAR2 (2000);
    BEGIN
       DBMS_OUTPUT.enable (1000000);
       DBMS_OUTPUT.put_line ('Startwert ist: ' || startwert);
       DBMS_OUTPUT.put_line ('Column Name ist: ' || column_name);
       DBMS_OUTPUT.put_line ('Table Name ist: ' || table_name);
          stmt :=
                'update '
             || table_name
             || ' set '
             || column_name
             || ' = ROWNUM + :startwert'
          DBMS_OUTPUT.put_line (stmt);
          EXECUTE IMMEDIATE stmt USING startwert;
    END;Wherever possible, I would suggest you try to avoid dynamic SQL as it hides dependencies and so can make maintenance more difficult.
    Also, it's not a great idea to splatter your code with DBMS_OUTPUT all over the place. It's better to wrap it in something so you have a bit of control over when it is used - something like log4plsql would be an example...
    HTH
    David

  • Need Help Can i use Merge command along with exist function in oracle?

    I am using Merge command to update the destination table and updating the rows which are already in the destination table.
    But what i want is to delete the existing rows from the destination table and insert fresh rows instead of updating the existing rows in the destination table.
    So can we use exist function to check the existing rows and delete them and use merge command to insert the rows in the table.

    You definitely need to do a DELETE then INSERT since MERGE will not delete rows, although I'm not really sure what that gets you since the net effect would be the same as a MERGE over the same pair of tables.
    If you really want to do it this way, then I would likely do something like:
    DELETE FROM target_table
    WHERE (columns_you_would_match_on) IN (SELECT columns_you_would_match_on
                                           FROM source_table
                                           WHERE predicate_you_would_use_in_using);
    INSERT INTO target_table (column_list)
    SELECT column_list
    FROM source_table
    WHERE predicate_you_would_use_in_using;John

  • Use ora:contains with a full sentence (Oracle 11g)

    Hello to all.
    I execute this query:
    SELECT d.* from Document d WHERE ( ( (( d.XML.existsNode('//field[ora:contains(@value,"*forni di sopra*","ai_my_policy") and  @fieldId="FE1195216030414741158"]','xmlns:ora="http://xmlns.oracle.com/xdb"') = 1) AND d.IDTEMPLATE=265) ) )
    And the system give me this result:
    <field name="Luogo" searchable="true" listable="false" fieldId="FE1195216030414741158" required="" taggable="false" iterable="false" isIterate="false" type="vocabulary" specification="" vocabulary="280" vocabularyOrig="FE1195216030414741158" value="*Forni di Sotto*"/>
    Why?
    I have no result is I search: ora:contains(@value,"*sopra*","ai_my_policy")
    My policy is:
    BEGIN
    CTX_DDL.create_preference(PREFERENCE_NAME => 'ai_my_lexer',
    OBJECT_NAME => 'BASIC_LEXER');
    CTX_DDL.set_attribute(PREFERENCE_NAME => 'ai_my_lexer',
    ATTRIBUTE_NAME => 'BASE_LETTER',
    ATTRIBUTE_VALUE => 'YES');
    CTX_DDL.create_policy(POLICY_NAME => 'ai_my_policy',
    LEXER => 'ai_my_lexer');
    END;
    Thank you,
    Cristian
    Edited by: baol on 29-apr-2011 2.26
    Edited by: baol on 29-apr-2011 2.27

    <?xml version="1.0" encoding="UTF-8"?>
    <root>
    <fields>
    <field name="Numero fascicolo" searchable="true" listable="false" fieldId="FE1195215593779632713" required="" taggable="false" iterable="false" isIterate="false" type="text" specification="simple" value="II"/>
    <field name="Titolo fascicolo" searchable="true" listable="false" fieldId="FE1195215346355558776" required="" taggable="false" iterable="false" isIterate="false" type="text" specification="simple" value="Oratorio di S. Lorenzo a Forni di Sotto - distretto di Ampezzo"/>
    <field name="Luogo" searchable="true" listable="false" fieldId="FE1195216030414741158" required="" taggable="false" iterable="false" isIterate="false" type="vocabulary" specification="" vocabulary="280" vocabularyOrig="FE1195216030414741158" value="Forni di Sotto"/>
    </fields>
    </root>

  • Dbms_lob.writeappend in Oracle 11g

    Hi,
    we have this line of code
    DBMS_LOB.writeappend(v_clob,doc_rec.seg_length,doc_rec.value) in our procedure.
    when we run this code in oracle10g ,its not taking thath much time.But when we run in oracle 11g,its taking time.
    I there any noncompatibility DBMS_LOB.writeappend for this function in oracle 11g.
    Thanks in advance

    thanks abufazal...
    actually after execution of below job, its not gathering the stats...
    i have checked using select LAST_ANALYZED,TABLE_NAME from dba_tables where OWNER='XXXXX';
    can anyone please suggest how to create job with scussful stats gather.
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB (
       job_name        => 'example_job1',
       job_type        => 'PLSQL_BLOCK',
       job_action      => 'BEGIN    
                             DBMS_STATS.gather_schema_stats("XXXXX", estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, cascade => TRUE);
                           END;',
       start_date      =>  TO_DATE('08-06-2013 18:00','DD-MM-YYYY HH24:MI'),
       repeat_interval => 'FREQ=DAILY;BYDAY=TUE;BYHOUR=18;BYMINUTE=0;BYSECOND=0',
       enabled         =>  TRUE,
       comments        => 'Gather table statistics');
    END;
    Can you provide output of the following query
    SQL> select job_name,job_action,start_date,last_start_date,last_run_duration,next_run_date,failure_count from dba_scheduler_jobs where job_name='EXAMPLE_JOB1';
    If the failure_count is > 0, please do share the errors from alert log file.

  • Object Invalidation in Oracle 11g R2

    Hi All,
    I found a distinct behaviour in oracle 11gR2 which is not even available in previous releases . Let me explain with an example.
    --creating a small table
    create table TEMPSAMPLE (COL1 VARCHAR2(10),COL2 VARCHAR2(10),COL3 VARCHAR2(15),COL4 VARCHAR2(15));
    -- Now Creating an Primary key index for table TEMPSAMPLE
    ALTER TABLE TEMPSAMPLE ADD CONSTRAINT PKTEMPSAMPLE PRIMARY KEY (COL1,COL2);
    ---CREATING A VIEW ON THE ABOVE TABLE
    CREATE OR REPLACE VIEW VWTEMPSAMPLE AS
    SELECT * FROM TEMPSAMPLE;
    -- CREATING A PACKAGE WHICH USES TEMPSAMPLE AND VWTEMPSAMPLE OBJECTS.
    CREATE OR REPLACE PACKAGE PKGSAMP AS
    VAL1 TEMPSAMPLE.COL1%TYPE;
    VAL2 CONSTANT TEMPSAMPLE.COL1%TYPE:='11';
    PROCEDURE VERIFYSAMP(INVAL IN NUMBER);
    END PKGSAMP;
    CREATE OR REPLACE PACKAGE BODY PKGSAMP IS
    PROCEDURE VERIFYSAMP(INVAL IN NUMBER)
    AS
    VAL1 TEMPSAMPLE.COL1%TYPE;
    VAL2 CONSTANT TEMPSAMPLE.COL1%TYPE:='11';
    BEGIN
    VAL1:='RAVI';
    FOR RC IN (SELECT * FROM VWTEMPSAMPLE)
    LOOP
    DBMS_OUTPUT.PUT_LINE('COL1 '||RC.COL1);
    DBMS_OUTPUT.PUT_LINE('COL2 '||RC.COL2);
    DBMS_OUTPUT.PUT_LINE('COL3 '||RC.COL3);
    END LOOP;
    INSERT INTO TEMPSAMPLE VALUES('REC05','RAVI','EEE','CK');
    DELETE FROM TEMPSAMPLE WHERE COL1='RECO1';
    UPDATE TEMPSAMPLE SET COL4='CKR' WHERE COL1='RECO2';
    DBMS_OUTPUT.PUT_LINE('VALUE IS '||INVAL);
    DBMS_OUTPUT.PUT_LINE('VALUE IS '||VAL1);
    END VERIFYSAMP;
    END PKGSAMP;
    --CREATING A PACKAGE PKGSAMP2 WHICH USES TEMPSAMPLE TABLE ITSELF
    CREATE OR REPLACE PACKAGE PKGSAMP2 AS
    VAL1 TEMPSAMPLE.COL1%TYPE;
    VAL2 CONSTANT TEMPSAMPLE.COL1%TYPE:='11';
    PROCEDURE VERIFYSAMP(INVAL IN NUMBER);
    END PKGSAMP2;
    CREATE OR REPLACE PACKAGE BODY PKGSAMP2 IS
    PROCEDURE VERIFYSAMP(INVAL IN NUMBER)
    AS
    VAL1 TEMPSAMPLE.COL1%TYPE;
    VAL2 CONSTANT TEMPSAMPLE.COL1%TYPE:='11';
    BEGIN
    VAL1:='RAVI';
    FOR RC IN (SELECT * FROM TEMPSAMPLE)
    LOOP
    DBMS_OUTPUT.PUT_LINE('COL1 '||RC.COL1);
    DBMS_OUTPUT.PUT_LINE('COL2 '||RC.COL2);
    DBMS_OUTPUT.PUT_LINE('COL3 '||RC.COL3);
    END LOOP;
    INSERT INTO TEMPSAMPLE VALUES('REC05','RAVI','EEE','CK');
    DELETE FROM TEMPSAMPLE WHERE COL1='RECO1';
    UPDATE TEMPSAMPLE SET COL4='CKR' WHERE COL1='RECO2';
    DBMS_OUTPUT.PUT_LINE('VALUE IS '||INVAL);
    DBMS_OUTPUT.PUT_LINE('VALUE IS '||VAL1);
    END VERIFYSAMP;
    END PKGSAMP2;
    -- OBJECT STATUS OF PACKAGES
    SELECT OBJECT_NAME,OBJECT_TYPE,STATUS FROM USER_OBJECTS WHERE OBJECT_NAME IN ('PKGSAMP','PKGSAMP2','VWTEMPSAMPLE');
    OBJECT_NAME   OBJECT_TYPE  STATUS*
    VWTEMPSAMPLE     VIEW     VALID
    PKGSAMP2     PACKAGE BODY     VALID
    PKGSAMP2     PACKAGE     VALID
    PKGSAMP     PACKAGE BODY     VALID
    PKGSAMP     PACKAGE     VALID
    Alter table TEMPSAMPLE DISABLE constraint PKTEMPSAMPLE KEEP INDEX;
    DROP INDEX PKTEMPSAMPLE;
    --OBJECT STATUS OF PACKAGES AFTER DROPPING INDEX
    SELECT OBJECT_NAME,OBJECT_TYPE,STATUS FROM USER_OBJECTS WHERE OBJECT_NAME IN ('PKGSAMP','PKGSAMP2','VWTEMPSAMPLE');
    OBJECT_NAME   OBJECT_TYPE  STATUS*
    VWTEMPSAMPLE     VIEW     INVALID
    PKGSAMP2     PACKAGE BODY     VALID
    PKGSAMP2     PACKAGE     VALID
    PKGSAMP      PACKAGE BODY     INVALID
    PKGSAMP     PACKAGE     VALID
    Alter table TEMPSAMPLE ENABLE constraint PKTEMPSAMPLE;
    As per the above process, if we observe that drop of index on a table arel lead to invalidation of view which* depends on that table  and all the objects which uses this view will also get invalidated.*
    The above invalidation is being occurred only in Oracle 11g R2, due to which we are facing the issue in our application.
    We got a procedure where we disable a constraint , drop a index and process the insertion/updation into the tables. After successfull insertion/updation, at finally we are enabling the constraint.
    This worked fine with previous releases of oracle 11g R2 , where as we recently migrated to 10g R2 which was leading to invalidation of all packages which uses the view , and in the application which uses previous db sessions are unable to access the invalidated package and raising an exception.
    Please provide the solution if any possible

    I tested the behavior in 10.2.0.4 and 11.2.0.3
    In 10.2.0.4, The view was valid if we disabled the constraint using the keep index option but it became invalid after dropping the index. SO i guess you are making them as unusable and rebuilding them after data load.
    in 11.2.0.3, The view became invalid as soon as we disabled the constraint using the keep index option.

  • Oracle 11g for Visual Studio 2008 errors

    I installed llg four(4) times and get the same result:  I can't get a Data Connection!!!  There is no other Oracle version on this computer and I've cleaned up the registry on all four installs.  In order to run SQLNET you must first have a Data Connection! Can someone that has experience with Visual Studio and Oracle 11g installation please tell me what I'm doing wrong? HELP! PLEASE, email me directly at: [email protected] Thanks. Any documentation would be helpful.
    Edited by: lam5158 on Sep 23, 2009 3:38 PM

    Sorry, you are right and it's my fault. Thanks for the tip. I saw the versions listed when I did the install, but I didn't realize I needed to select any because I thought it would install automatically for whichever VS versions you had installed.
    Thanks again! :)

  • Oracle 11g for Visual Studio 2008

    I installed llg four(4) times and get the same result: I can't get a Data Connection!!! There is no other Oracle version on this computer and I've cleaned up the registry on all four installs. In order to run SQL*NET you must first have a Data Connection! Can someone that has experience with Visual Studio and Oracle 11g installation please tell me what I'm doing wrong? HELP! PLEASE, email me directly at: [email protected] Thanks. Any documentation would be helpful.

    Excellent test case, may by you should raise an SR and hope it ends up as a bug.
    What happens if you "ping box01.data.local" what IP Address do you get back? You should be looking to get back the loopback address.
    What happens if you do a nslookup 192.168.30.64 and 192.168.1.100?
    Have you tred setting ORACLE_HOSTNAME? Not sure if this is just for the installer or not.

  • ORACLE 11g win64 installation on Windows 7

    Hello,
    Could anyone help me in knowing whether the ORACLE 11G win64 is the right version to install on Windows 7?

    Hello,
    I need help with the installation of ORACLE 11g for installation on Windows 7 Win64. After I was almost finished with the installation, I got an error message saying that the following application (see below) can't be found in the folder:
    C:\Oracle\product\11.2.0\dbhome_1\owb\external\oc4j_applications\applications\WFMLRSVCApp.ear
    Does anyone know where to find this file? I am a student starting my class next week and trying to have everything ready before.
    Thanks so much for any help.
    Edited by: 855887 on May 1, 2011 3:55 PM

Maybe you are looking for