Create table based on the timestamp prtition generate ORA-14752
Hello
I have following question - why create table 1 generate ORA-14752 script? Script 2 works without any problem. Feel it is on interval - day/month. How to create the script table 1?
Database:
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
1.
create table
(pData
start_date TIMESTAMP,
store_id NUMBER,
inventory_id NUMBER (6)
)
PARTITION OF RANGE (start_date)
INTERVAL (NUMTOYMINTERVAL (1, 'DAY'))
(
PARTITION pdata_p2 VALUES LESS THAN (TO_DATE (' 07/01/2007 ',' DD-MM-YYYY ""));
PARTITION pdata_p3 VALUES LESS THAN (TO_DATE (' 08/01/2007 ',' DD-MM-YYYY ""))
);
2.
create table
(pData
start_date TIMESTAMP,
store_id NUMBER,
inventory_id NUMBER (6)
)
PARTITION OF RANGE (start_date)
INTERVAL (NUMTOYMINTERVAL (1, 'MONTH'))
(
PARTITION pdata_p2 VALUES LESS THAN (TO_DATE (' 07/01/2007 ',' DD-MM-YYYY ""));
PARTITION pdata_p3 VALUES LESS THAN (TO_DATE (' 08/01/2007 ',' DD-MM-YYYY ""))
);
YM in NUMTOYMINTERVAL stands for the year and the month. With NUMTODSINTERVAL it should work.
create table
(pData
start_date TIMESTAMP,
store_id NUMBER,
inventory_id NUMBER (6)
)
PARTITION OF RANGE (start_date)
INTERVAL (NUMTODSINTERVAL (1, 'DAY'))
(
PARTITION pdata_p2 VALUES LESS THAN (TO_DATE (' 07/01/2007 ',' DD-MM-YYYY ""));
PARTITION pdata_p3 VALUES LESS THAN (TO_DATE (' 08/01/2007 ',' DD-MM-YYYY ""))
);
Tags: Database
Similar Questions
-
Bookmarks created automatically based on the word 2013 Table of contents.
Bookmarks created automatically based on the word 2013 Table of contents. In the earlier version of Word, the Style of the Table of contents built into bookmarks when PDFing.
I thought about it. There is a new check box, you must activate in 2013 of Word when exporting to PDF format that allows to convert the elements of bookmarks when PDFing.
-
Is there an easy way to filter a 2D table based on the values in two fields?
Y at - it an easy way to filter a 2D table based on the values of one of the fields. In my attached VI the output array has the following format:
Ident Frame Type bytes TimeStamp data
10:57:07.621 3AD00016 POUVEZ 8 0000000000000000 data frame
10:57:07.622 3AD00017 CAN data frame 8 000005E000000000
10:57:07.624 3AD00018 POUVEZ 8 0000000003300000 data frame
10:57:07.625 2DC00000 POUVEZ 8 0000000000000000 data frame
10:57:07.626 3AD00019 POUVEZ 4 0000030000000000 data frame
I would like to delete all lines that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the data above the fourth row would be removed. The only way I can see to do this is to form a 1 d table. Is there a better approach?
Thank you.
Hi chuck72352,
After you've sorted your data, you can use the function InRange. Combined with a "search in 1 table D", you get the range you really want.
Mike
-
Poller DB to select records based on the timestamp
Hi all
I want select records from the coloumn timestamp where the timestamp is older than an hour. Is it possible to do this through poller db? I tried but unable to pass the dynamic value (currently - 1 hr)
Thanks in advance!
Eventually create a view based on the timestamp and singled out the dbpoller view.
-
Create table of all the names of files in the target folder on the desktop using ExtendScript?
I am trying to write a script that will watch a folder target on my computer and retrieve the paths for each of the files inside this folder and then store them in a table. This table will be then available later to add paths to the individual files in target comps. So far I have failed to find ways to achieve this, is it possible to say ExtendScript to create a table based on the contents of a finder folder?
Thank you!
Once you have the file, this will give you a table of all the files (and folders) in the folder:
myFiles var = myFolder.getFiles ();
Dan
-
divide the table based on the number of lines
Hello
I am trying to split a table based on the number of lines and then treat.
Say I have a TEST_XXX table that contains 50 lines, what I would do is.
to access multiple lines of 10. How can we achieve this?
What I thought is, once the table is created and the line are filled.
Add a new column to the table and perform a procedure that inserts of 1 to 10 first lines
and 2 to 10 lines and 3 to 10 next ranks... etc. Based on this, that we can treat
the first set of lines then play next or etc...
is there a better way to do it?
Code to create the table:
Code to add lines:CREATE TABLE TEST_XXX ( A_ID VARCHAR2(10), B_ID NUMBER, c_ID VARCHAR2(10), D_ID NUMBER )
The original problem is, I have a huge table, and I write a sql query to process,DECLARE BEGIN FOR I IN 1..50 LOOP INSERT INTO TEST_XXX VALUES('ABCDE',123,'ZYXWV',321); END LOOP; COMMIT; END;
When I treat him by selecting all the values in the table, it is very slow.
But when I have treat small Coulon (say 100 rows), it works very well.
That's how I got the approach described above in mind.You can use NTILE.
See:
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions101.htm#SQLRF00680
http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:47910227585839 -
SQL script to insert values into a table based on the type of user
Hello
I have a requirement where I need to insert (username, groupname) in a table based on the user name.
We have two types of user accounts:
(1) user name, which starts with "DV" example: "DVPATM."
regular user 2) example: 'PATM '.
If the user name begins with "DV" under instruction insert should kick in
insert into < tablename > (username, groupname) VALUES (< username > ' < groupname1 >).
otherwise below insert statement should kick in
insert into < tablename > (username, groupname) VALUES (< username > ' < groupname2 >).
I need to use SQL or stored only procedure.
Please suggest
Thanks in advance
All things being constant, you could use decode/case just for groupname by examining the first character t the user name, for example
insert into
(username, groupname) VALUES ( , (substr ( , 1, 2) the case when "DV" then else end)); Fixed edit: value for OTHERS, as noted by Frank
-
Create lines based on the difference in date
Hello
I would like to create lines based on the difference between the start and end dates (per year).
for example
ID1 Start_time End_time ID2
07/01/2003 1, 12.00.00.000000000 2005-01-07 12.00.00.000000000 12307/01/1999 1, 12.00.00.000000000 07/01/2003 12.00.00.000000000 345
I need:
ID1 Start_time End_time ID2
07/01/2004 1, 12.00.00.000000000 2005-01-07 12.00.00.000000000 12307/01/2003 1 12.00.00.000000000 07/01/2004 12.00.00.000000000 123
1 01/07/2002 12.00.00.000000000 07/01/2003 12.00.00.000000000 345
07/01/2001 1, 12.00.00.000000000 01/07/2002 12.00.00.000000000 345
07/01/2000 1, 12.00.00.000000000 01/07/2001 12.00.00.000000000 345
07/01/1999 1, 12.00.00.000000000 07/01/2000 12.00.00.000000000 345
Thank you
Hello
Here's one way:
SELECT ID1
, ADD_MONTHS (start_time, 12 * (LEVEL - 1)) AS start_time value
, ADD_MONTHS (start_time, 12 * LEVEL) AS end_time
id2
FROM table_x
CONNECT BY LEVEL<= months_between="" (end_time,="" start_time)="">=>
AND PRIOR id2 = id2
AND PRIOR SYS_GUID () IS NOT NULL
;
I'm assuming that id2 is unique.
Would what results you if end_time wasn't exactly N years after start_time?
-
insert into the table based on the difference in line (or using less)
Hello
Oracle Version: 11g
Operating system: Solaris 10.
I was wondering if it is possible to insert data in a table based on the operator 'less' Please?
We have a very large table in a database, we moved to a different database. The table is cleared by a line for a certain range of dates, and we wondered if it is possible to insert this line of data in the remote database using the difference of rank between the two tables.
Here's the query that we are running:
SELECT ID , TO_CHAR (creation_datetime, 'yyyy-mm-dd') from TABB10 where TO_CHAR (creation_datetime, 'yyyy-mm-dd')='2014-03-18' minus SELECT ID , TO_CHAR (creation_datetime, 'yyyy-mm-dd') from TABB10@TABB_LINK.APDB00 where TO_CHAR (creation_datetime, 'yyyy-mm-dd')='2014-03-18'
TO_CHAR (CR ID
---------------------- ----------
2.4111E + 17-18 / 03 / 2014
Any ideas please?
Thank you
If I don't get me wrong, you can insert as below
INSERT INTO REMOTE_TABLE@DBLINK
SELECT ID, TO_CHAR (creation_datetime, "yyyy-mm-dd")
of TABB10
where TO_CHAR (creation_datetime, 'yyyy-mm-dd') ='' 2014-03-18
less
SELECT ID, TO_CHAR (creation_datetime, "yyyy-mm-dd")
of TABB10@TABB_LINK. APDB00
where TO_CHAR (creation_datetime, 'yyyy-mm-dd') ='' 2014-03-18
Concerning
-
When you save a file to the [.jpg] format, I wonder to choose a quality from 1 to 100. What are the changes in the created file based on the selected quality setting? I would like to know what changes, so in the future, I can set my camera to one who will give me the highest quality in a first time, which allows me to make cultures and always preserve the quality.
Thank you
Dovid
Thank you twenty-one... your answer of common sense to me.
so, in short, can I assume down the chosen quality over compression algorithm?
-
How to update the password on the other table based on the mod
Hello
I need to update the password for the other table based on the mod.
I have two table 'user' and 'reset '.
User:
Username username password date_exp
s232322 Bobby John sdds4545df4r 10/12/2010
s454566 George Bill f444556gh76 07/14/2010
s343466 Bill Clinton fgf54tyujkkkhj 06/12/2011
.
.
.
Reset:
Series encrypt decrypt
fgf5656fg 0 Watellemon
1 dfggf5665 lime juice
dfdffd545 2 applesalad
3 54r4gggt airlines
construction of 4 hg44hh63
5 fgf4343yh security
.
.
.
How can I update the password of a table to another table "reset"?
Ex: query
Update user set password = (select Encrypt reset where mod (length (username), 10))
If mod (length (username), 10) is 0, it should take series "0" encrypt the password and update the password in the table "user".
If mod (length (username), 10) is 1, it should take serial '1' encrypt the password and update the password in the table "user".
If mod (length (username), 10) is 2, it should take series '2' encrypt the password and update the password in the table "user".
If mod (length (username), 10) is 3, it should take series '3' encrypt the password and update the password in the table "user".
If mod (length (username), 10) is 4, it should take series '4' encrypt the password and update the password in the table "user".
....
Please help me write an update query.
Thank you
NiharHi, Nihar,
You almost had it! You just need to correlate the subquery for the main UPDATE statement, like this:
UPDATE user_table u -- USER is a built-in function; it's not a good table name SET password = ( SELECT encrypt FROM reset -- RESET isn't a very good table name, either WHERE serial = MOD ( LENGTH (u.username) , 10 ) );
-
Rows based on the timestamp column
Hi Experts
I'm trying to get the last 3 records based on the timestamp column. But I am not able to understand where I should start... ?
To make it more clear
I have the following data
I want toid date 1 07/03/09 3:57:55.000000 PM 2 08/03/09 9:23:55.000000 PM 3 05/03/09 7:53:55.000000 PM 4 08/03/09 5:41:55.000000 PM 5 06/03/09 8:50:55.000000 PM
Thanks and greetings2 08/03/09 9:23:55.000000 PM 4 08/03/09 5:41:55.000000 PM 1 07/03/09 3:57:55.000000 PM
Saurabh Sharmaselect * from ( select * from x order by dt desc ) where rownum <= 3
Published by: Alex Nuijten on March 10, 2009 11:31
-
Add lines to insert a table based on the box and the values in the LOV
I have two options (1) the list of values (2) box (2 values) .the are required field.when I click on create lines button and then insert table/slot (fire) form of table, based on my selected lov values (for example 3 selected then 3 rows only) and the value of the checkbox.
If I select 3 values LOV and then check the box 1
SEQ / / desc box SL (1) 1 DESC 1 1 2 DESC 2 2 3 DESC 3 3 If I select 5 values LOV and then check the box 0
Header 1 / / desc box SL (0) 1 DESC 1 0 2 DESC 2 1 3.. 5 DESC 3... 5 2.. 5 my workspace: ram_r & d
username/password: aramani/apex
App: https://apex.oracle.com/pls/apex/f?p=72423:1:102019883635814:NO
Thank you
RAM
It has achieved the goal, thread:multi line table based on LOV
-
Hide the line of adf table based on the transient attribute does not
I have a JSF
page where the user can insert new line in
View object
. this
View object
contains a transitional
attribute which indicates whether or not the record is newly created.
On the same page, I have a table adf
which is bounded on the city
view object
. This table should show only newly created records. my approach is to use
expression language of
in the
renditions
property to hide all the other lines that are not newly created. I changed the render property for the columns of the table as:
rendered="#{row.bindings.RowStatus.inputValue eq'new'}"
, but the table does not show anything.Then, I tried to change the
made
not for the column property, but to the
outputText
inside the same way. It worked, but the problem is that the blank line is always on display.
So, basically because I do not hide the entire line, instead I'm hiding the text in the lines and lines with spaces empty is still on display in the page aside.
The Table of JSF
page where the
made
property is applied on
outputText
inside the column:
<af:table value="#{bindings.UplodedFilesView1.collectionModel}" var="row"
rows="#{bindings.UplodedFilesView1.rangeSize}"
binding="#{CreatSR_UserBean.fileTable}">
<af:column sortProperty="#{bindings.UplodedFilesView1.hints.FileName.name}"
headerText="File Name" id="c1">
<af:outputText value="#{row.bindings.FileName.inputValue}" id="it1"
rendered="#{row.bindings.RowStatus.inputValue eq'new'}"/>
</af:column>
</af:table>I use Jdeveloper with ADF technology 11.1.2.3
Thanks Timo,
You are right. Its to late to hide lines after stamping in the row set. I solve the problem by filtering the view object, based on the transitional attribute in the section of liaison page. The steps as follows: (assuming that the object from view with the temporary attribute has been created, and the transient attribute contains the filtered values)
- Drag the view object on the page and also make the Table (in my case it might otherwise listen)
- On the page, go to the connection tab.
- Double-click the object desired in the links column.
- New window will appear titled with (change the binding tree)
- Check the option (enable filtering)
- Select the (filter attribute) and (filter value) for the selected filter attribute.
- Select (Display attribute) you want to appear in the page.
- Press OK
-
How to highlight the line of the ADF table based on the value of the column?
Hi all
I use jdev 10.1.3.4. I want to highlight a table row or a cell based on the value of the column.
Lets say, I have a table emp with column empid, empname and sal. I want to emphasize the lines that have sal = 10000.
How can I achieve this? Please help me with this.
Thank you
AbhijitHello
You want to highlight the lines? or set a different color for the lines? If it's the second, you can set the inline style based on the salary. (+ Edit: well, never mind, both are same :)) +)
Something like
If you want the entire line to be a different color, you have 2 options.
1. define the same style inline for all columns in the table (good if you want to do only for a single table).
2. create a style class and apply the styleclass based on the value of sal (preferably if you want the same behavior in all of your application).Arun-
Published by: joel Ramamoorthy, October 23, 2009 16:56
Maybe you are looking for
-
HI my new app has disappeared, I can prove it with this photo
-
HP Envy 110F All in One D411: HP Envy 110F All in One, D411 - the control panel is blank
I've owned the printer for almost two years and in the course of the last three or four months has intermittently on the Panel of control displays only a logo turning HP. Today, however, he went completely empty. It is powered and connected wireles
-
You use Microsoft Baseline Security Scan, I received information about the failure of the Audit. Event ID is 615, category is the change in policy, is the Source of security. How can I fix it?
-
cannot configure photosmart c4580 to connect to my wireless network
I tried to connect my photosmart c4580 following your instructions and got to the last step and after I hit APPLY, the grip of the page for a while then it says "the server where the page does not. I hit refresh several times but no luck. I'm stuck
-
How do I uninstall error 20021316 Streets &; trips
How do I uninstall error 20021316 Streets & trips