Help create the subpartitions
HelloI get the error while creating a SUBPARTITION to my table.
CREATE TABLE Tab1
(
col1 NUMBER (12).
col2 CHAR (1 BYTE),
COL3 CHAR (1 BYTE),
COL4 NUMBER (12)
)
LIST BY SCORE (col1)
SUBPARTITION BY HASH (col4)
SUBPARTITION TEMPLATE)
SUBPARTITION SP_1 TABLESPACE C_D
)
(
PAR_0 PARTITION VALUES (0)
)
C_D TABLESPACE
Error
SUBPARTITION BY HASH (col4)
*
ERROR on line 9:
ORA-00922: missing or not valid option
The syntax is everything is correct... I do not understand where I am going wrong. Can someone tell me my mistake.
Thank you
Saami
Words Hoek is correct, at least for 10.2.
11.2 media list/hash and your code works as expected (after changing the tablespace for users):
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> CREATE TABLE Tab1
2 (
3 col1 NUMBER(12),
4 col2 CHAR(1 BYTE),
5 col3 CHAR(1 BYTE),
6 col4 NUMBER(12)
7 )
8 PARTITION BY LIST (col1 )
9 SUBPARTITION BY HASH (col4)
10 SUBPARTITION TEMPLATE(
11 SUBPARTITION SP_1 TABLESPACE users
12 )
13 (
14 PARTITION PAR_0 VALUES (0)
15 )
16 TABLESPACE users;
Table created.
SQL>
But you don't tell us your Oracle version so...
Tags: Database
Similar Questions
-
Help create the VM hard drive external
Hello
I am trying to create a virtual machine from a hard drive that was in my laptop. It is a 80G drive and XP Media Edition installed with a recovery partition separate. (Gateway) I searched a few threads and continuum has a very useful post:
Hello
by far the simplest to do that involves a few stepssupport:
do it on a computer that has the installed desktop - allows you to call this machine adminhost
the portable hard drive is used inside a USB connected to this computer boxCarefully follow them
1. open the adminhost diskmanagement
- find the usb drive and note that numero_disque uses it - say for example it uses disk3
- Right-click on each partition and remove the driveletters are subsequently assigned
2. open VMware Workstation as an administrator!
- create a new virtual machine using option "I will install later.
- Select Windows 7 guestOS
- assign the same amount of RAM as the old laptop used to have
- store the virtual machine in a path with enough free disk space - Let's E:\vms\laptop-import
- When the virtual machine is created will NOT start
- Remove the hard drive that has been created with the wizard
- Add a new hard drive - select disk physical option and select the numero_disque looked you up in step 1
- Select use "full disk" and save the vmdk as E:\vms\laptop-import\rawdisk.vmdk
- do not start the virtual machine and close the station work
3. open a cmd as administrator
- CD in the WS install directory such as C:\programfiles\vmware\vmware-workstation
- Enter vmware - vdiskmanager.exe - a help screen should be displayed
- now type vmware - vdiskmanager.exe - r E:\vms\laptop-import\rawdisk.vmdk t 0 E:\vms\laptop-import\new.vmdk
- a process of conversion should start now - let the finsih - this may take some time
4. open my computer again
- Open the virtual machine and modify virtual hardware
- Delete rawdisk.vmdk and add new.vmdk instead
- Start the virtual machine now
5. look what he does at first start
- disc read error, cursor blinking at the top left of the screen... This means that your case is trickiert what you said to us ;-)
- BlueScreen 7B - good - all right - to setp 6.
- the virtual machine starts completely - congratulations - you are a lucky guy and your laptop used an Intelchipset
6 patch the drivers
- start the converter 5 betaor a recent version of different
- 'Configure the machine' Wizard and select the new virtual machine
- find the usb drive and note that numero_disque uses it - say for example it uses disk3
- When the wizard has completed successfully, you are finished
-
Hi all
I have the below requirement.
I'm looking for a way to identify products with the exact same specifications.Master table: Product ID Product Name 1 TV 2 Cellphone 3 Laptop 4 DVD Player Details table: Product ID Spec type Spec Detail 1 Color Blue 1 Weight 20 2 Color Blue 2 Weight 20 3 Color Blue 3 Weight 25 4 Color Blue 4 Weight 20 4 Height 10
That is to say, in the example TV and cell phone above has exact specifications.
So the result of the query must be TV and phone cell phone here.
Is it possible to do in a query, or we need a sql block to perform this action.
Any help would be greatly appreciated.
Thank you
AgathyaHi agathya,
We do not know how you want to handle the situation where more than two products have the same specifications, so I extended your sample data slightly to take account of this situation as well:
SQL> create table products (id,name) 2 as 3 select 1, 'TV' from dual union all 4 select 2, 'Cellphone' from dual union all 5 select 3, 'Laptop' from dual union all 6 select 4, 'DVD Player' from dual union all 7 select 5, 'Radio' from dual union all 8 select 6, 'VCR' from dual 9 / Tabel is aangemaakt. SQL> create table product_specifications (product_id,spec_type,spec_detail) 2 as 3 select 1, 'Color' , 'Blue' from dual union all 4 select 1, 'Weight', '20' from dual union all 5 select 2, 'Color' , 'Blue' from dual union all 6 select 2, 'Weight', '20' from dual union all 7 select 3, 'Color' , 'Blue' from dual union all 8 select 3, 'Weight', '25' from dual union all 9 select 4, 'Color' , 'Blue' from dual union all 10 select 4, 'Weight', '20' from dual union all 11 select 4, 'Height', '10' from dual union all 12 select 5, 'Color' , 'Blue' from dual union all 13 select 5, 'Weight', '20' from dual union all 14 select 6, 'Color' , 'Blue' from dual union all 15 select 6, 'Weight', '20' from dual union all 16 select 6, 'Height', '10' from dual 17 / Tabel is aangemaakt. SQL> select p1.name 2 , p2.name 3 from products p1 4 , products p2 5 , product_specifications ps1 6 , product_specifications ps2 7 where p1.id = ps1.product_id 8 and p2.id = ps2.product_id 9 and p1.id < p2.id 10 group by p1.id 11 , p1.name 12 , p2.id 13 , p2.name 14 having sqrt(count(*)) = 15 count(case when ps1.spec_type = ps2.spec_type and ps1.spec_detail = ps2.spec_detail then 1 end) 16 / NAME NAME ---------- ---------- TV Cellphone TV Radio Cellphone Radio DVD Player VCR 4 rijen zijn geselecteerd.
But why devil you or your specifications product model predecessor like that? You are much more complicated that it should be. And the data type of size and weight should be not the same as those of color. But now they are. And how do limit you the allowed values for the colors? Color, weight and size are characteristic of your products so that they should have been modeled like this.
See how easily your questions becomes after remodeling it:
SQL> drop table product_specifications purge 2 / Tabel is verwijderd. SQL> drop table products purge 2 / Tabel is verwijderd. SQL> create table products (id,name,color,weight,height) 2 as 3 select 1, 'TV', 'Blue', 20, null from dual union all 4 select 2, 'Cellphone', 'Blue', 20, null from dual union all 5 select 3, 'Laptop', 'Blue', 25, null from dual union all 6 select 4, 'DVD Player', 'Blue', 20, 10 from dual union all 7 select 5, 'Radio', 'Blue', 20, null from dual union all 8 select 6, 'VCR', 'Blue', 20, 10 from dual 9 / Tabel is aangemaakt. SQL> select * from products 2 / ID NAME COLO WEIGHT HEIGHT ---------- ---------- ---- ---------- ---------- 1 TV Blue 20 2 Cellphone Blue 20 3 Laptop Blue 25 4 DVD Player Blue 20 10 5 Radio Blue 20 6 VCR Blue 20 10 6 rijen zijn geselecteerd. SQL> select p1.name 2 , p2.name 3 from products p1 4 , products p2 5 where p1.id < p2.id 6 and ( p1.color = p2.color or (p1.color is null and p2.color is null)) 7 and ( p1.weight = p2.weight or (p1.weight is null and p2.weight is null)) 8 and ( p1.height = p2.height or (p1.height is null and p2.height is null)) 9 / NAME NAME ---------- ---------- TV Cellphone TV Radio Cellphone Radio DVD Player VCR 4 rijen zijn geselecteerd.
I hope this helps.
Kind regards
Rob. -
Need help created the state machine which is based
I need assistance with my labview program. My goal is to write a program that allows the user to activate a switch. When they do this, it will start a loop witch goes on a digital switch for 45 minutes and then 30 seconds and so on until the user did switch the switch off. The time doesn't have to be precise. I use the NI 9476 digital output card.
I wrote the code to activate the on/off switch. I know add fuction in loop for 45 minutes a stop 30 seconds. I guess that the most effective method would be to use a state machine, but I struggle to understand.
The program that I wrote so far without loops is attached.
Thank you
Barrett
I couldn't open your vi because I do not have some of the Subvi.
Nothing wrong with the first example posted, but I interpreted the specification a little differently.
Edit: There was a small bug in the first zip file.
-
I put it in my table:
SQ_NO CUST_ID YEAR1 YEAR2 10 10028354 1996 2002 SELECT 10 SQ_NO, 10028354 CUST_ID, 1996 BY AN1 AN2 2002
FROM DUAL;
On a line I need to generate the number of lines between an1 and an2 and I need to generate only even numbers in the column of the year2. The result should be like this:
10 10028354 1996 1996
10 10028354 1996 1998
10 10028354 1996 2000
10 10028354 1996 2002
I tried a lot of things, but nothing has worked for me. I'd appreciate the support.
Kind regards
skas
Hello
skas wrote:
My bad I find it hard to understand this function correctly at the moment.
There is no function affected by the query you posted.
May be I pressure to quickly generate this report this is why I am not able to focus on learning patiently rather more interested in the realization of the goal.
When you're ready to learn how works the CONNECT BY clause, see
http://www.adp-GmbH.ch/ora/SQL/connect_by.html and/or
http://www.oradev.com/connect_by.jsp
I used Oracle for years before I learned how to CONNECT BY works. I'm glad that I finally took the time to learn; It is very useful.
I added a line in addition in the request, but now I'm getting duplicates. I tried to use the group by clause, but both options still holding separate, when I run the query against the current table that has rows of 50 K.
If the table has more than 1 line, then you need a condition in addition to LEVEL<= x ="" in="" the="" connect="" by="" clause;="" some="" condition(s)="" using="" the="" prior="">=>
Depending on your version of Oracle, he gets the results you posted:
SELECT sq_no
cust_id
, by an1
by an1 + ((LEVEL - 1)
* 2
) AS yearx
A
CONNECT BY LEVEL<= (="" (year2="" -="">=>
/ 2
) + 1
AND sq_no = PRIOR sq_no
AND PRIOR SYS_GUID () IS NOT NULL
ORDER BY 2, 3, 4
;
This assumes that a.sq_no is unique.
Beware of any solution that requires SELECT DISTINCT. Very often, it's just a very expensive way to deal with a problem rather than solve it.
-
my windows vista computer is to download a lot of updates which will create the lack of disk space in my hard C drive? Please help...
You already have disk cleanup?
Please use this tutorial:
http://www.Vistax64.com/tutorials/76073-disk-cleanup.htmlThe Atlantic tutorial has 2 parts:
Step 1 to 11 is for the classic disk cleanup which will give you back some disc FEPs.
Step 12 until the end (more), is to delete all except the most recent restore points. This will give bring you a ton of disk space.
ATTENTION: Make sure that your computer works OK because you delete restore points.
You have no past point to fall up to restore more new restore points are created. -
Failed to create the required registry key: vmware, Inc. error: 2 when installing the vm 7 wareinwin and the installation of any software of a few errors in registry pls help...
Hello mnaveen.kumar,
Search the registry to see if this key was created. Sometimes, the installation program does not have permission to this key.
HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.
You can try to manually create the key to see if this will help.
Please reply back and let us know if this can help.
Sincerely,
Marilyn
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
After the last automatic update, I tried to back up my files (did this every week for at least one year). Message "unable to create the folder pair. Unable to create the provider"came. I tried again, same. The pair and tried to reset upward. Same message... anyone have an idea how to fix?
Hi Steve,.
The question you have posted is related to SyncToy and would be better suited in the SyncFX - SyncToy community. Please visit the link below to find a community that will provide the support you want.
http://social.Microsoft.com/forums/en-us/SyncToy/threadsHope this information helps.
-
"Can't find the necessary files" cannot retrieve or create the recovery disk. Help!
I can't refresh PC or create the recovery disk. He keeps going with error message "Cannot find the necessary files" and tells me to insert the recovery media. There is no system restore point, and I've upgraded to Windows 7 Windows 8 Pro without a disc, so I can't do anything. Help! Strangely, nusrmgr.cpl disappeared, although I had seen the shortcut a few weeks ago (no, I'm not deleting it).
Hello
I imagine the inconvenience that you are experiencing. I'll certainly try and help you in the matter of fixing.
To help you to propose measures to solve the problem, I would appreciate if you could answer the following questions:
1. Why are you trying to cool off the computer?
2 are you facing problems with Windows 8?
3. how many accounts is configured in the computer?
You can scan the file system (CFS) auditor. This will replace the corrupted Windows files.
Follow these steps:
(a) start the desktop view.
(b) open the command prompt, right-click in the left corner when the windowappears, and select prompt (admin).
(c) type the following command and press ENTER:
sfc/scannow
The sfc/scannow command analyzes all protected system files and replaces incorrect versions with appropriate Microsoft versions.
You can also try to create a new user account and check if the problem persists.
If the problem persists, you will need the DVD to perform repair installation of Windows 8. If you download the installation of Windows 8 files, check your emails, there should be a link to download an ISO file. Download and burn the file to a DVD.
The DVD to perform the repair.
Hope this information was helpful and let us know if you need more assistance. We will be happy to help you.
-
There was a problem creating the destination folder. If please check the permission of folder or choose a different folder. What that means, tried to name several different folders, but still the same error message. Would be grateful for the help!
This means that the folder you want to create is blocked because of file permissions. The drive or folder you are trying to create the destination folder is set to read-only, and your username does not have write permissions.
-
Help to create the view - error: ORA-00955: name is already used by an existing object
Hello
I am trying to create the following view but sqlplus displays a message and point of view has not been created. I use 11g Express.
SQL > create view (client, f_pedido, total) orders as
2 (
3 select usr, date, sum (rising) as important
4 of
5 (
6 select lineas_any.usuario as usr, lineas_any.fecha_pedido as date, lineas_any.cantidad * as rising referencia.precio
7 of lineas_any
inner join 8
referencia 9
10 on lineas_any.referencia = referencia.codbarras
11 )
Group 12 by usr, date
13)
14 order by date asc, usr;
of lineas_any
*
ERROR on line 7:
ORA-00955: name is already used by an existing object
There are also descriptions of the two tables involved:
SQL > describe lineas_any
Name Null? Type
------------------------------------------------------ -----------------
USER NOT NULL VARCHAR2 (60)
FECHA_PEDIDO NOT NULL DATE
REFERENCIA NOT NULL VARCHAR2 (15)
AMOUNT NUMBER (2)
SQL > describe referencia
Name Null? Type
------------------------------------------------------ -----------------
CODBARRAS NOT NULL VARCHAR2 (15)
PRODUCT NOT NULL VARCHAR2 (50)
FORMATO NOT NULL VARCHAR2 (20)
SILTING NOT NULL VARCHAR2 (15)
PRECIO NOT NULL NUMBER (7.2)
STOCK NUMBER (5) NOT NULL
MIN_STOCK NOT NULL NUMBER (5)
MAX_STOCK NOT NULL NUMBER (5)
Please, could someone help me in this matter?
Thanks in advance.
Kind regards
It means that it is already an object named peridos. Question:
Select object_type from user_objects where object_name = 'PERIDOS;
to find out what type of object it is. Any chance you try to change the existing definition of peridos view? If so, use
CREATE or REPLACE view orders (customer, f_pedido, total) as...
SY.
-
Inability to create the snapshot (General error) - need help
Hello
Since 3 days, snapshot is no longer working with one of my VM (is a production machine).
Vsphere Client 5.5.0 I got a General in vSphere Client error when I do a snapshot. In management of snapshot section, I see no snapshot
but when I go into the directory of the virtual machine by ssh is to see that below (there are a few photos...)
I tried to create the snapshot with and without the data from the memory, but it always the same effect. (Snapshot is taken with the virtual machine is turned on).
- What am I trying to consolidate the disk? Is it safe?
- Can someone help me?
Thanks in advance,
Michael
VMware - 4.log
VMware - 5.log
VMware - 6.log
VMware - 7.log
VMware - 8.log
VMware - 9.log
VMware.log
VMX-prod03-64-Ubuntu-2098329481-1.vswp
prod03-64-ubuntu-000001 - ctk.vmdk
prod03-64-ubuntu-000001 - delta.vmdk
prod03-64-ubuntu - 000001.vmdk
prod03-64-ubuntu-000002 - ctk.vmdk
prod03-64-ubuntu-000002 - delta.vmdk
prod03-64-ubuntu - 000002.vmdk
prod03-64-ubuntu-000003 - ctk.vmdk
prod03-64-ubuntu-000003 - delta.vmdk
prod03-64-ubuntu - 000003.vmdk
prod03-64-ubuntu-000004 - ctk.vmdk
prod03-64-ubuntu-000004 - delta.vmdk
prod03-64-ubuntu - 000004.vmdk
prod03-64-ubuntu-000005 - ctk.vmdk
prod03-64-ubuntu-000005 - delta.vmdk
prod03-64-ubuntu - 000005.vmdk
prod03-64-ubuntu-000006 - ctk.vmdk
prod03-64-ubuntu-000006 - delta.vmdk
prod03-64-ubuntu - 000006.vmdk
prod03-64-ubuntu - 7d11f789.vswp
prod03-64-ubuntu - Snapshot137.vmsn
prod03-64-ubuntu - Snapshot138.vmsn
prod03-64-ubuntu - Snapshot139.vmsn
prod03-64-ubuntu - Snapshot140.vmsn
prod03-64-ubuntu - Snapshot141.vmsn
prod03-64-ubuntu - Snapshot142.vmsn
prod03-64-ubuntu - ctk.vmdk
prod03-64-ubuntu - flat hard
prod03-64 - ubuntu.nvram
prod03-64 - ubuntu.vmdk
prod03-64 - ubuntu.vmsd
prod03-64 - ubuntu.vmx
prod03-64 - ubuntu.vmx.lck
prod03-64 - ubuntu.vmxf
I found the problem
Some VM had a disc mounted in vSphere. It worked until last week, don't know why this problem only appears now.
After you have disconnected the CD, 'manage the snapshot' list still empty, I clicked on consolidate first, after that, back to 'manage the snapshot' and my snapshots
appeared. And last step, I deleted this snapshot for merge all...
Maybe this will help someone else...
-
Created the model in gold, need help about sysprep
Dear team,
I created a template in gold for windows 2012 R2 STD edition. All virtual machines will be deployed now from this model.
Once the new virtual machine is deployed, then I'll run sysprep.exe
then I got these screen I just want to confirm which option should I select here IE enter Out - of - Box Experience (OOBE) or enter the system check Mode, and I have to restart or shut down the virtual machine.
Need your help on the same.
concerning
Mr. Vmware
Yes, the generalize option removes unique information from a Windows installation so that you can safely reuse this image on a different virtual machine.
-
I'm on Acrobat 10 for mac and I need help with the distribution of shape feature. Is there a way to change the registration e-mail download addressed to the? Currently all forms I create and then distribute may only be subjected to my email account... I appreciate any help!
Do not use the feature distribute the form. Instead of this, just put up a button "submit" and configure it to send email using any email address you want. Just add a button and set the action of the mouse upward on "Submit a form" and use a type mailto URL and specify that you want to send the full PDF. Then activate the reader of the document: where "Advanced/extended features in Adobe Reader" is located in Acrobat XI?
If you really want to use distribute the form for some reason, change the e-mail address in your preferences: Edit > Preferences > identity > Email address
-
Hello
I'm new to the first Pro CC but I managed to find the basics.
The only thing I need to know now is how to create or if it is possible to create the bar that appears at 0:31 seconds
in the video, the bottom of the screen with the text that fades in & out.
Please see attached link for reference, note the bar 0:31 seconds in the video.
If anyone can help I would REALLY appreciate it
Thank you!
EMOTIONS ARE HIGH. HANNAH MAGGS - YouTube
PS or AE is necessary. Create two first titles, one being the black box and the other the white text. Stack the layers two title above the video layer. Add the Adobe motion effect to the black box and use keyframes to animate the movement on/off screen (Y axis), then fade very simple white inside and out, title
Jeff
7. If the converter does not... no problem - download or create a Windows 7 recovery CD and attach the vmx file to your next post
However, in step 3 during the conversion process it stops at 27% and gives an error. I've attached a screenshot of it.
Thanks for any help!
Wow - this XP is not really to be converted.
It has set up a strong resistance ;-)
Converter is a not - we tried to any version.
Finally, I had to use a LiveCD MOA and install the vmscsi driver manually.
So at the end of the day, the virtual machine starts and we are facing by WoodyZ
Maybe you are looking for
-
Updated Firefox to day today. Suddenly, my homepage is upward. When I click on home, he goes to the correct page, but pulls down of it every time. I want to straighten it please.
-
Satellite A-L50-10J - how to reset the BIOS password?
Hello I have a problem with my Satellite L50-A-10J. I forgot my BIOS password.I tried to remove the cmos battery on the inside but nothing do you know how you can "reset the BIOS? Thank you
-
Dynadock does not show second monitor
Just got my dynadock and cannot get my 2nd monitor for clone my laptop. It only shows my screensaver. Any suggestions?
-
Satellite L300 Wireless icon has the Cross Red but connected - SOLUTION
Satellite L300. Home Premium Windows 7 32. Updated the wireless driver Atheros to the download area of Toshiba (the newest driver released on 11/27/11). After the reboot, the icon in the notification area wireless shows with red cross through it even
-
Unknow Device for HP DL380 G7 using Windows Server 2003 32-bit
I need help to identify the right Windows 2003 SP2 32-bit driver for an unknown device in the Device Manager on a HP DL380 G7 server. I have attached a screenshot. The only information than the other, is that the device can be a PCI ISA device. Any