Oracle 11g  List - Range Partition - Help Needed

Hi All,
I want to create a composite partition (LIST-RANGE) but RANGE partition should using interval partition
This is my query .
CREATE TABLE "DMSDB"."DEVICE_UTILS"
(     "ULID" VARCHAR2(100 CHAR),
     "IP_ADDRESS" VARCHAR2(24 CHAR),
     "PORT" VARCHAR2(8 CHAR),
     "SHUTDOWN" NUMBER(10,0),
     "LINE_TYPE" NUMBER(10,0) DEFAULT '0',
     "OCCUPIED" NUMBER(10,0),
     "UTILIZATION" NUMBER(10,0),
     "IDLE_TIME" VARCHAR2(32 CHAR),
     "ACTIVATION_TIME" VARCHAR2(32 CHAR),
     "PULLED_DATE" TIMESTAMP (6) DEFAULT SYSDATE,
     "ACCESS_TIME" TIMESTAMP (6) DEFAULT SYSDATE
PARTITION BY LIST(ULID)
          PARTITION PART_DEVUTILS_ULID VALUES (DEFAULT)
     SUBPARTITION BY RANGE( PULLED_DATE)
     PARTITION PART_DEVUTILS_WEEK INTERVAL (NUMTOYMINTERVAL(1,'WEEK'))
Somehow its not working. can you please suggest where i am making mistake?

Interval partitioning is not supported at the subpartition level.
http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_7002.htm#BABCDDIA
Regards
Girish Sharma

Similar Messages

  • List-range partition

    Hi Oracle Gurus,
    I have a table with list partition, as the partitions are growing large I need to create subpartitions.
    Is it possible to create a range subpartition under list partition. If yes I need that subpartition to be built on time not on date.
    Is it possible.

    While range-list partitioning exists in 10g, list-range partitioning to the best of my knowledge does not exist. There are some new options in 11g but I can't remember what they are off the top of my head. You can check the on-line documentation to see what your partitioning options are
    Your partitioning options will depend on what version of Oracle you are using. Also remember that you need the licence to use the partitioning feature

  • Create list-range partition table

    Database version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    I am trying to create a partition table with LIST-Range, and I am getting this following error, is oracle 10.2.0.4 database supports to create list-range partition(composite)
    SQL> CREATE TABLE tbp_list_range
    REPORT_DATE DATE,
    member_id_01 varchar2(2),
    DATE_SERVICE date,
    member_id varchar2(15)
    PARTITION BY LIST(member_id_01)
    SUBPARTITION BY RANGE (DATE_SERVICE)
    PARTITION SPTYR04M01_C VALUES('AA','aa')
    NOLOGGING
    COMPRESS (
    SUBPARTITION PTYR12M011 VALUES LESS THAN (TO_DATE(' 2012-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    SUBPARTITION PTYR12M021 VALUES LESS THAN (TO_DATE(' 2012-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    SUBPARTITION recent1 VALUES LESS THAN (MAXVALUE)
    PARTITION SPTYR04M01_Yo VALUES('BJ','bj')
    NOLOGGING
    COMPRESS (
    SUBPARTITION PTYR12M01 VALUES LESS THAN (TO_DATE(' 2012-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    SUBPARTITION PTYR12M02 VALUES LESS THAN (TO_DATE(' 2012-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    SUBPARTITION recent2 VALUES LESS THAN (MAXVALUE)
    SUBPARTITION BY RANGE (DATE_SERVICE)
    ERROR at line 9:
    ORA-00922: missing or invalid option
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    Any help would be greatly appreciated.
    Thanks,

    any possible work around for this scenario on 10.2.0.4
    --thanks                                                                                                                                                                                               

  • I am new to oracle 11g release 2 Please help

    When i run sql script in oracle 11g R 2 sql plus. It returns me with an error "missing right parenthesis" Error in last line. Simply its not accepting contraints in which i run them. Details as follows
    Thankful for the help
    create table courses (code varchar2(8) constraint S_PK primary key, description varchar2(30) constraint S_DESC_NN not null, category char(3) constraint C_CAT_NN not null, duration number(2) constraint C_DUR_NN not null, constraint C_CODE_CHK check (code = upper(code)), constraint C_CAT_CHK check (category in (`GEN', `BLD', `DSG')));
    If i run above sql script, it says missing right parenthesis in the last line i.e * constraint C_CAT_CHK check (category in (`GEN', `BLD', `DSG')))
    AGAIN:
    create table courses (code varchar2(8) constraint S_PK primary key, description varchar2(30) constraint S_DESC_NN not null, category char(3) constraint C_CAT_NN not null, duration number(2) constraint C_DUR_NN not null);
    Again If i run the above without checks, it gives the error of missing the right parenthesis in the last line i.e * constraint C_DUR_NN not null

    Hi
    it seems, quotes problem.
    pl.try this
    create table courses (code varchar2(8) constraint S_PK primary key, description varchar2(30) constraint S_DESC_NN not null,
    category char(3) constraint C_CAT_NN not null,
    duration number(2) constraint C_DUR_NN not null,
    constraint C_CODE_CHK check (code = upper(code)),
    constraint C_CAT_CHK check (category in ('GEN', 'BLD', 'DSG')));
    -- DJ

  • Oracle Wallet Setup and Use Help Needed - Respond

    We are trying to make our shell scripts use the wallet rather than using the files which has password in them
    What are the advantages of wallet over the password file?
    Also let us discuss the disadvantages of oracle wallet as well. So we can decide on using the existing system of keeping the passwords in the password file itself or migrating to oracle wallet
    Thanks for your time

    Hello, iam trying to install oracle ifs on my laptop. You can hekp me out..
    1>I have installed oracle 9.0.2 database.
    My question is do we need to install oracle IAS also. I have installed that one too..and intstalled ifs in the same folder of ias. But iam facing problem iam trying to open login page ..http server is not finding my login page . Http server is in oracle database..can u help me out thanks

  • List-range partition and subpartition

    Does anyone know that Oracle 10g support partition by list and subpartition by range? Thanks.

    check the documentation link [http://download.oracle.com/docs/cd/B19306_01/appdev.102/b31695/dialogs.htm#sthref441]
    hope you will find your answer on link page.

  • Oracle to Access: Generic Connectivity, Help Needed

    Please come to this forum and help me
    Generic connectivity for M.S ACCESS?
    Thanks

    MS drivers for Oracle was designed a very long time ago with Oracle7 in mind.
    You might want to see: http://support.microsoft.com/kb/244661
    I have not tested your code, but I guess you need to consider giving up on the idea of using ancient interfaces such as Jet. Not sure about MS' supporting the technology, but at least the older "win 95" versions seem unlikely to be Unicode-enabled.
    Edited by: orafad on Mar 20, 2012 10:57 PM
    Edited by: orafad on Mar 20, 2012 10:58 PM

  • [b]Connection to Oracle DB per JDBC URGENT HELP NEEDED PLEASE![/b]

    Hallo,
    I'm a newbie. I want to make a connection to the oracle db on the server and I have been having serious problems. See CODE and ERROR MESSAGEs below:
    import java.sql.*;
    public class SqlConnection01 {
         public static void main(String[] args) {
              Connection con = null;
              Statement stmt = null;
              try {
                   Class.forName("oracle.jdbc.driver.OracleDriver"); //Loading the Oracle Driver.
    con = DriverManager.getConnection
         ("jdbc:oracle:thin:@38.218.2.227:1521:testdb","data","test"); //making the connection.
                   stmt = con.createStatement ();// Sending a query to the database
                   ResultSet rs = stmt.executeQuery("SELECT mand,kost,ktest,kok FROM test");
                        while (rs.next()) {
                             String mandt = rs.getString("1");
                             String kostl = rs.getString("2");
                             String ktest = rs.getString("3");
                             String kokrs = rs.getString("4");
                             System.out.println( mandt + kostl ktest kokrs );
              } catch(Exception e) {
                   e.printStackTrace();
              } finally {
                   try
                        if(stmt != null) stmt.close();
                        if(con != null) con.close();
                   } catch (Exception exception) {
                        exception.printStackTrace();
    ERROR MESSAGE:
    java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
         at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3695)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:352)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:362)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:536)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:328)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at SqlConnection01.main(SqlConnection01.java:24)
    What am I doing wrong here. I am using Oracle9i client installed on my pc (Release 2 (9.2.0.1.0) for Windows ) so I downloaded the ojdbc14 drivers for this version and I copied them in my bin directory C:\j2sdk1.4.2_06\bin\ojdbc14 .
    Secondly I can connect to the db per command line( sqlplus /nolog; conn data/test@testdb) and querry the testdb.
    I can also test the connection using oracle Net Manager and the test is successful.
    But I can't start up the lsnrctl on my pc.I get this message any time i issue the command(C:\>lsnrctl
    'lsnrctl' is not recognized as an internal or external command, operable program or batch file.)
    What am I doing wrong here? What should I do to have this connection possible. Thanks very much in advance.

    oh sure! Below is the TNSNAMES I copied from my PCfound in(C:\oracle\ora92\network\admin\SAMPLE) The next thing could be how could I get access to the TNSNAMES on the server?
    STARTS HERE:
    <alias>= [ (DESCRIPTION_LIST =  # Optional depending on whether u have
                        # one or more descriptions
                        # If there is just one description, unnecessary ]
         (DESCRIPTION=
         [ (SDU=2048) ]     # Optional, defaults to 2048
                        # Can take values between 512 and 32K
         [ (ADDRESS_LIST=    # Optional depending on whether u have
                        # one or more addresses
                        # If there is just one address, unnecessary ]
         (ADDRESS=
              [ (COMMUNITY=<community_name>) ]
              (PROTOCOL=tcp)
              (HOST=<hostname>)
              (PORT=<portnumber (1521 is a standard port used)>)
         [ (ADDRESS=
              (PROTOCOL=ipc)
              (KEY=<ipckey (PNPKEY is a standard key used)>)     
         [ (ADDRESS=
              [ (COMMUNITY=<community_name>) ]
              (PROTOCOL=decnet)
              (NODE=<nodename>)
              (OBJECT=<objectname>)
    ... # More addresses
         [ ) ] # Optional depending on whether ADDRESS_LIST is used or not
         [ (CONNECT_DATA=
              (SID=<oracle_sid>)
              [ (GLOBAL_NAME=<global_database_name>) ]
         [ (SOURCE_ROUTE=yes) ]
         (DESCRIPTION=
         [ (SDU=2048) ]     # Optional, defaults to 2048
                        # Can take values between 512 and 32K
         [ (ADDRESS_LIST= ]     # Optional depending on whether u have more
                        # than one address or not
                        # If there is just one address, unnecessary
         (ADDRESS
              [ (COMMUNITY=<community_name>) ]
              (PROTOCOL=tcp)
              (HOST=<hostname>)
              (PORT=<portnumber (1521 is a standard port used)>)
         [ (ADDRESS=
              (PROTOCOL=ipc)
              (KEY=<ipckey (PNPKEY is a standard key used)>)
         ...           # More addresses
         [ ) ]           # Optional depending on whether ADDRESS_LIST
                        # is being used
         [ (CONNECT_DATA=
              (SID=<oracle_sid>)
              [ (GLOBAL_NAME=<global_database_name>) ]
         [ (SOURCE_ROUTE=yes) ]
         [ (CONNECT_DATA=
         (SID=<oracle_sid>)
         [ (GLOBAL_NAME=<global_database_name>) ]
         ... # More descriptions
         [ ) ]     # Optional depending on whether DESCRIPTION_LIST is used or not
    I think this is the example of what is in the TNSNAMES. It hasn't got the infos I need here.It just explain.

  • Oracle 11g Active Data Guard help ?

    Hi Friends,
    I successfully setup an Active data guard environment(11g). But, I dont know when the PROD database is highly utilize , its read only tasks like reporting and backup are doing in STANDBY. How can I know which db (prod or stand by) is used for these readonly operations ?
    Regards
    Vish

    It is not so simple to direct reports to the Physical Standby as you seem to assume.
    You need to do some work for the setup.
    See here for a description:
    http://uhesse.com/downloads/real-time-query-presentation/
    Kind regards
    Uwe Hesse
    Don't believe it, test it!"
    http://uhesse.com

  • Validate from list behavior ? help needed

    Hi,
    I have an item whith a lov attached to and the proerty of the lov is validate from list = yes.
    But when a create a record and type the begining of the words eg Jean then when i do key-list-val or F9 the lov returns me all the rows and.
    And when i press enter in the field then the lov shows with Jean% and show me only the names beginning with Jean.
    Why does it only happen when i press enter and not when doing F9?
    Should it not be the same behavior ?
    Thanks in advance.
    PS: it is quite urgent !
    Jean-Yves

    Hi ,
    When you enters a wrong value into a "Validate from List" Item and hit <ENTER> then validation to make sure that the entered value exists within the List and if it is not there , then the forms engine filters the Shows values as the value entered into the Item as helping you to select from the List cause you have entered ambigious Choise and in case no matched entries it display all the list , but in case you display the LOV normally this means you are trying to select a value then no Pre Serach happened unless you specify (Filter Before Display = true) on the LOV properties ,
    Best Regards,

  • Oracle Final Year Project Choice Help Needed

    hi everyone,
    I m Amir from Pakistan, I m a student of CS final year at a IT University powered by Govt.of pakistan.
    Can any one help us regarding choice of Final Year project/proposal. we want to build oracle based solution for any industry or sector which will also helpfull for me and my team not only for College Final Year Project but also for after college industry solutions.
    As in consideration different sectors are in front of us, i.e Oil & Gas, Manufacturing, Automobiles, Communications etc
    But, we think this forum is much help full cause different professional peoples are much better able to guide us with respect to current and upcoming trends.
    Thanks
    Amir

    Hi Amir,
    I can think of a dozen different projects. You could check the functionalities in Oracle's eBusiness Suite (Oracle Applications). For instance you could implement a human resource module (employees details, salaries etc), or a employee time card application. Why not a resource booking system (conference rooms, beamers, computers etc).
    All these examples could easily be split into parts. Say for instance time reporting. One group could implement the interface to the employees, one group the interface to the managers, to the human resource department, and there's also quite some administrative setup modules.
    What project proposals have you come up with yet?
    Well, because it's your first post I warmly welcomes you to the Oracle Forums here at Oracle Technology Network.
    Regards,
    Martin Malmstrom
    ORACLE Consulting

  • Partitions help need a super mac os wizard help

    i updated to mountain lion.  i was using snow leopard and had parrells 6 installed.  parrelles 6 does not support mountain lion so i have two questions.  i refuse to buy another parralles program since i hardly used windows anyway but i was wondering if i could use bootcamp with the partition allready installed and if so how do i and if i cant how do i get all my space back from the original parrells program.  the website says to run parrelles to delete....well  i cant since its not supported.  i went into disk utilities and really i dont even know where the partition is to delete it manually.
    so recap:
    can i run bootcamp to use whats installed allready and how
    or
    how do i get my space back from parrells since it is not compatble
    im willing to delete everything fromt he windows partition but nothing from the mac harddrive side itself.
    thanks

    Parallels Desktop does not store its Windows installation in a separate disk partition and instead stores it in a special disk image file, so you could not simply reboot to that partition to run it. Additionally you cannot simply copy the Parallels disk to a partition and run it in boot camp.
    The Parallels drive is likely in your Documents folder in a directory called "Parallels," so you can try searching there for it and then simply remove it.

  • Automatic table partitioning in Oracle 11g

    Hi All,
    I need to implement automatic table partitioning in Oracle 11g version, but partitioning interval should be on daily basis(For every day).
    I was able to perform this for Monthly and Yearly but not on daily basis.
    create table part
    (a date)PARTITION BY RANGE (a)
    INTERVAL (NUMTOYMINTERVAL(1,'*MONTH*'))
    (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
    Table created
    create table part
    (a date)PARTITION BY RANGE (a)
    INTERVAL (NUMTOYMINTERVAL(1,'*YEAR*'))
    (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
    Table createdBut if i use DD or DAY instead of YEAR or MONTH it fails......Please suggest me how to perform this on daily basis.
    SQL>
      1  create table part
      2  (a date)PARTITION BY RANGE (a)
      3  INTERVAL (NUMTOYMINTERVAL(1,'*DAY*'))
      4  (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
      5* )
    SQL> /
    INTERVAL (NUMTOYMINTERVAL(1,'DAY'))
    ERROR at line 3:
    ORA-14752: Interval expression is not a constant of the correct type
    SQL> create table part
    (a date)PARTITION BY RANGE (a)
    INTERVAL (NUMTOYMINTERVAL(1,'*DD*'))
    (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
    );  2    3    4    5
    INTERVAL (NUMTOYMINTERVAL(1,'DD'))
    ERROR at line 3:
    ORA-14752: Interval expression is not a constant of the correct typePlease suggest me to resolve this ORA-14752 error for using DAY or DD or HH24
    -Yasser

    Yes, for differenct partitions for different months.
    interval (numtoyminterval(1,'MONTH'))
    store in (TS1,TS2,TS3)
    This code will store data in partitions in tablespaces TS1, TS2, and TS3 in a round robin manner.
    for Day wise day yes you can store
    INTERVAL (NUMTODSINTERVAL(1,'day')) or
    INTERVAL (NUMTODSINTERVAL(2,'day')) or
    INTERVAL (NUMTODSINTERVAL(3,'day')) or
    INTERVAL (NUMTODSINTERVAL(4,'day')) or
    INTERVAL (NUMTODSINTERVAL(5,'day')) or
    INTERVAL (NUMTODSINTERVAL(n,'day'))

  • Need to connect to Oracle 11g using PI 7.1 JDBC adapter

    Hi All,
    I am trying to configure a JDBC adapter to connect Oracle 11g. For this I need to know the driver,jar and connection URL details.
    Can anyone please provide the above information?
    Please correct me if my details are wrong :
    JDBC Driver : oracle.jdbc.driver.OracleDriver
    JAR : ojdbc5.jar
    URL : jdbc:oracle:thin:@localhost:1521:ora11i
    Regards,
    Prakash.

    Yes i knew how to deploy the jars using SDA.
    I will try to deploy the above jar (ojdbc5.jar ) and try to connect to Oracle 11g with URL & Driver classname.
    If I face any problem then i will get  back to you.

  • Book for Oracle 11g

    Hi All,
    From last 8 months i am working on Oracle 9i , we had a release of our project by migrating the DB to Oracle 11g..
    Next version of our product will be full fledged Oracle 11g DB project , So i need to study about 11g,
    Please can any one suggest me a good book to study and upgrade my skills with 11g
    Thanks in Advance...

    Hello,
    You'll find here all the books given by Oracle:
    - For Oracle 11.1:
    http://www.oracle.com/pls/db111/homepage- For Oracle 11.2:
    http://www.oracle.com/pls/db112/homepageIt's nice to start with the *2days* book and then study the Administrator Guide the Concepts, Backup and Recovery, Utilities, ... .
    Hope this help.
    Best regards,
    Jean-Valentin

Maybe you are looking for

  • Skype Account Blocked

    I have signed up with Skype on 25th this month and added some credit as well. After about one min. conversation with a friend my skype account was blocked.  I have contacted support team with all my details and at the end they told me that they canno

  • When i click to open itunes i get the disclaimer, i click AGREE and the program wont open

    when i click to open itunes i get the disclaimer, i click AGREE and the program wont open    HELP

  • Regarding Function Specification in Sap FICO

    HI guyz Could anybody plz explain what is Functional Specification in SAP FICO Could anybody explain me with an example. Could you give any idea abot Technical Specifications too.. Regards Anil

  • MacBook Pro i5 vs First Gen Mac Pro

    I have a first generation Mac Pro, 2 x 2.66 Ghz as well as a Mac Book Pro, 2.2 Intel Core 2 Duo. I was thinking about selling both of them and consolidating to a new MacBook Pro i5. Will the new MBP i5's performance be equal to or exceed my current M

  • Curve overheated while charging and now won't turn on!

    I charged my Blackberry Curve this afternoon and when I came back for it, I noticed it was very hot. I unplugged it and turned it off and left it alone. When I went to get it later, it would not turn on. I tried to charge it again, but nothing. I the