Partiton Exchange with a table of partitoned
Hi all
Basically, I want to exchange a partition with a partition to another table. < < Not with data from the source, only the subset of data from the source table > >
I am not able to do this, because the swap partition syntax allows only to exchange the partition with an entire table... According to below syntax
Target WITH the source TABLE of the EXCHANGE PARTITION
Is it possible I can do Exchange partition with a partition specific to this table in the source as below
SWAP PARTITION WITH source TABLE p1_target_jan_2013 where month = "Jan 2013"
OR
SWAP p1_target_jan_2013 WITH TABLE source partition p1_jan_2013 PARTITION
We want to move existing data from a tab1 in the table (Source) that is already partitioned on the date column for each month.
Data in the source given cans to zero for each month.
that is when ever some Calc is run again for a given month (e.g. Jan 2013), existing data related to "Jan 2013" is given first and then deleted again inserted for this month ' Jan "»
2013 so to keep a history of all data, we want to keep moving data to the data in the history before deleting.
As huge data are involved, can use PARTITION EXCHNAGE, but also located above, as I want to exchange the partition with the subset of rows of a table source'm not able to do this.
Can someone help me please...
Kind regards...
I suppose that there are two partitioned tables (the letters represent the content, not the name of the partition):
- PARTITIONED_TABLE_SOURCE (A, B, C)
- PARTITIONED_TABLE_TARGET (D, E, F)
If I want to get the data from the partition A to replace the data in the partition D, I'd be:
- Exchange A Partition with a self-help support table H (defined with the same columns, index a etc)
- now, my PARTITIONED_TABLE_SOURCE contains partitions (H, B, C) and A is a stand-alone table (of course I mean the data and not the partition since H names will be named A after the Exchange)
- Swap Partition D with the self-help support table has (once again a stands for the content and not the name of the object): so now PARTITIONED_TABLE_TARGET contains (A, E, F)
Maybe it would be more concese with a code example...
Tags: Database
Similar Questions
-
Im having problems shaped a text box so that my table does not print right on top of it. I want it inside of my table (it's 'tems and conditions' budget)
Any advice would be great.
I face the same problem as well. Would like to know if there is a better way to get the text box to move with the table instead of the effect that overlap. Have to manually adjust the layout, whenever I want to get a reasonable print of a document (or export it to PDF) seems counterintuitive, especially when it causes the document seem ill-disposed on screen.
I am running version 3.6.2 of the numbers in the case where that matters.
-
How do VI with timestamp table entry
I'm doing a sub - VI for a program and I need to have a double array, boolean and an array of time as an entry stamp. I can't find a way to mark the entrance with a table timestamp however indicator. My only choice seems to be double and Sub. Is it possible that I can do this?
You have a block of empty array on your front panel and then move there a timestamp control.
-
Time dilation of a curve with interpolation table 1 d?
Greetings,
I'm trying to run a time dilation of a curve I used to work with the table 1 d of function interpolate VI. Basically, I have to perform the expansion on each segment, that is why each segment contains 100 points, where there are currently 60.
I am currently working with two files (the two are broken) to compare because I'm not sure how to use the table 1 d interpolating VI, and what I have to enter for the fractional index. I know that the output of the table in the first for loop should go in the 1 d array interpolated somehow.
I'm stuck!
Thank you!
TheLT
I'm good I thought it
Here's how to do it for later use.
Code attached.
TheLT
-
CVI suggested help update on 'programming with the Table controls.
Hello
May I suggest adding a sentence to the chapter 'Programming with the Table controls', 'Creation and deletion of cells' section help of CVI.
After the sentence "use the following functions to control the number of rows in a table control...". "I would like to add a suspicion that the number of lines is also affected by (programmatically) adjustment of the height of the table.
Now that I've discovered, it's obvious ;-)
Hi Wolfgang,.
I think you might be misunderstanding this sentence in aid. It does not refer to the size of the table, in regard to the number of lines go in the table. It is in fact the number of real lines exist in the table. And the total number of rows in the table is absolutely not affected by the height of the table.
Luis
-
Hello, I tried to find a way to do the summation of a table, the sum of 19 points at a time, leaving me with another table. I feel like this has a simple solution, but I'm not sure how.
Thank you.
A time loop that contains the subset of the table can do.
Lynn
-
Is it possible to update a chart "XY" whenever a point is generated as with a "table"?
Is it possible to update a chart "XY" whenever a point is generated as with a "table"?
In the attachment, the XY graph, 'OUT' is updated once the loop is completed. I would like to be updated as data is generated inside the loop. Is this possible?
Thank you.
To make it work, you need to do the full table available inside the loop. This means that you cannot use a tunnel of indexing at the exit to build the array. Instead, you must use a shift register and build the table inside the loop.
This will do what you want. It would have been easier to show you if you had posted your code.
-
whenever I have open windows mail on vista Home premium I get a security alert come in saying: information you exchange with this site cannot be viewed or changed by others. However, there is a problem with the sites security certificate. the apears to warning sign against the flowing: the name on the sercurity certificate is invalid or does not match name sites. When I look at the certificate is isseued to: a248.e.akamai.net and issued by: gte cybertrust global root. Please help like really annoying me now. If you need more detail, please let me know
original title: windows security alert email
It's okay Brian T and GWinV. On my windows live mail that I had to delete all the emails of the Martin Lewis to stop this upcoming certificate error. Everything is good now.
-
I have been hacked and you will have to reset my PC to factory setting and reinstall everything. To get my Adobe Lightroom rear 6 where she was re - download the software and then Exchange with my current backup catalog catalog. Will this work? -What I else I need / have to do?
Yep, it shud work.
https://helpx.Adobe.com/Lightroom/help/import-photos-various-sources.html
Restore a backup catalog
- Choose file > open catalog.
- Navigate to the location of your backup catalog file.
- Select the backup the .lrcat file and click Open.
- (Optional) Copy the catalog to the location of the original catalogue to replace.
-
execution of stored procedure in sql developer/sql more with a table setting?
Hello
I create a package with a procedure which has a cursor ref as output and a type as an input parameter. Here is my definition of the package
PACKAGE ------- CREATE OR REPLACE PACKAGE TEST As TYPE RefCursorType IS REF CURSOR; type intTableType is table of varchar2(50) index by binary_integer; PROCEDURE GETDATA ( P_RECORDS OUT RefCursorType, YEAR_LIST IN intTableType ); END; PACKAGE BODY ----------------------- SET DEFINE OFF CREATE OR REPLACE PACKAGE BODY TEST AS PROCEDURE GETDATA ( P_RECORDS OUT RefCursorType, YEAR_LIST IN intTableType ) AS iYearList IDTableType; BEGIN --GET ARRAY COUNT IYEARLIST := IDTABLETYPE(); IYEARLIST.EXTEND(YEAR_LIST.COUNT); --LOOP THROUGH LISTS AND POPULATE ARRAY FOR I IN YEAR_LIST.FIRST .. YEAR_LIST.LAST LOOP IYEARLIST(I) := IDTYPE(TO_CHAR(YEAR_LIST(I))); END LOOP; OPEN P_RECORDS FOR SELECT CITHTML AS FORMATTED FROM dbTest.FORMATTED_HTML WHERE YEAR IN (SELECT * FROM TABLE(IYEARLIST)) ; END GETDATA ; END TEST ; /
I want to perform this procedure from the sql or sql developer more to see if it works properly. The year field dbTest.FORMATTED_HTML is defined as varchar2 (20 bytes). He has many years as well as text.
I've used this in the past with simple stored procedures, but not those with a table setting
var r refcursor;
exec GETOLDDATA(:r,40);
print r;
How can I modify this to allow him to run my stored procedure?
Thank you
Just declare SQL, not type of PL/SQL:
CREATE OR REPLACE
TYPE Str50TblType
AS THE TABLE OF THE VARCHAR2 (50)
/
CREATE OR REPLACE
THE TEST PACKAGE
IS
GETDATA PROCEDURE)
P_RECORDS ON SYS_REFCURSOR,
YEAR_LIST IN Str50TblType
);
END;
/
CREATE OR REPLACE
TEST OF PACKAGE BODY
IS
GETDATA PROCEDURE)
P_RECORDS ON SYS_REFCURSOR,
YEAR_LIST IN Str50TblType
)
IS
BEGIN
OPEN P_RECORDS
FOR
SELECT CITHTML AS FORMATTED
OF dbTest.FORMATTED_HTML
WHERE YEAR IN)
SELECT *.
TABLE (YEAR_LIST)
);
GETDATA END;
END TEST;
/
SY.
-
Create view opaque in OBIEE with multiple tables
Hello
I need assistance with the opaque view since I've never created in the past. I want to create an opaque view that retrieves data from several tables. Is it possible to do? Or y at - it another alternative available in OBIEE option? I read the blog following and other similar articles on views opaque but found no option to use for the query with several tables:
Oracle Business Intelligence: A physical layer to OBIEE 10 g Opaque View Creation
Also please advice how to join two tables from different databases in OBIEE?
Kindly advice.
Kind regards
Andy
Check also, it may be useful to you
http://obinsight.blogspot.com/2010/05/reporting-against-multiple.html
-
I try to use Pivot by joining with another table, but I am getting an error. I created a few generic test charts and data.
CREATE TABLE Employee ( empno NUMBER (3) NOT NULL, -- Employee ID ename VARCHAR2 (10 BYTE), -- Employee Name hireDate DATE, -- Date Employee Hired orig_salary NUMBER (8, 2), -- Orignal Salary deptno NUMBER -- Region where employeed ) CREATE TABLE departments (deptno NUMBER, dept_name VARCHAR2 (30))
I'm looking to find the sum of the salaries of all employees by each Department, but organized by date of hire. The output should be something like...SET DEFINE OFF; Insert into EMPLOYEE (EMPNO, ENAME, HIREDATE, ORIG_SALARY, DEPTNO) Values (108, 'Jode', TO_DATE('09/17/1996 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 21000, 30); Insert into EMPLOYEE (EMPNO, ENAME, HIREDATE, ORIG_SALARY, DEPTNO) Values (122, 'Alison', TO_DATE('09/17/1996 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 45000, 10); Insert into EMPLOYEE (EMPNO, ENAME, HIREDATE, ORIG_SALARY, DEPTNO) Values (123, 'James', TO_DATE('12/12/1978 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 23000, 20); Insert into EMPLOYEE (EMPNO, ENAME, HIREDATE, ORIG_SALARY, DEPTNO) Values (104, 'Celia', TO_DATE('12/12/1978 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 53000, 30); Insert into EMPLOYEE (EMPNO, ENAME, HIREDATE, ORIG_SALARY, DEPTNO) Values (105, 'Robert', TO_DATE('01/15/1984 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 31000, 10); Insert into EMPLOYEE (EMPNO, ENAME, HIREDATE, ORIG_SALARY, DEPTNO) Values (116, 'Linda', TO_DATE('01/15/1984 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 43000, 20); Insert into EMPLOYEE (EMPNO, ENAME, HIREDATE, ORIG_SALARY, DEPTNO) Values (117, 'David', TO_DATE('01/15/1984 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 78000, 30); COMMIT; SET DEFINE OFF; Insert into DEPARTMENTS (DEPTNO, DEPT_NAME) Values (10, 'Maths'); Insert into DEPARTMENTS (DEPTNO, DEPT_NAME) Values (20, 'Physics'); Insert into DEPARTMENTS (DEPTNO, DEPT_NAME) Values (30, 'Chemistry'); COMMIT;
Help with the query is very much appreciated.HIREDATE Maths Physics Chemistry 9/17/1996 45000 0 21000 1/15/1984 31000 43000 78000 12/12/1978 0 23000 53000
Published by: IamAby on Sep 18, 2012 11:44
Published by: IamAby on Sep 18, 2012 11:46What:
SQL> select e.hiredate 2 , sum( case when d.dept_name = 'Maths' then orig_salary else 0 end ) maths 3 , sum( case when d.dept_name = 'Physics' then orig_salary else 0 end ) physics 4 , sum( case when d.dept_name = 'Chemistry' then orig_salary else 0 end ) chemistry 5 from employee e 6 , departments d 7 where d.deptno = e.deptno 8 group by e.hiredate 9 order by e.hiredate desc; HIREDATE MATHS PHYSICS CHEMISTRY ------------------- ---------- ---------- ---------- 17-09-1996 00:00:00 45000 0 21000 15-01-1984 00:00:00 31000 43000 78000 12-12-1978 00:00:00 0 23000 53000
Published by: Hoek on September 18, 2012 21:03 added "0 otherwise ' in case '.
-
Main table with two tables of children as part of the ADF
Hello
I'm trying to implement single master with two tables in detail using oracle adf framework of Jdev 11.1.1.4.0. I am able to only master / details using the link display but unable to reach the details i.e., nested block child master with nested blocks.
I created query view object based on the master and two poll objects of the base seen as details. Then, I created two master of first child link and another link for master of the second child. Even in this case in my data controls I see two different components which is incorrect.
Please let me know how to create a data control for an example below:
Fruit [MASTER]
-Details of Fruits such as the table of the adf
-Apples [FIRST CHILD]
-Details of the apples as adf table
-Orange [SECOND CHILD]
-Details of the Oranges as adf table
Kind regards
Amar.You need two viewLinks
Fruit-> apples
Fruit-> OrangesThen, in the data model, you choose the entry of fruit that has:
Fruit
|---> ApplesYou stand on the fruit and you shuttle Oranges to be below left to right.
If you use the HR schema by default, you will see this type of relationship for employees:
https://blogs.Oracle.com/Shay/entry/master_with_two_details_on_the -
a function that returns the type with a table joint!
Good day to all,
I have a function that returns a type.
so I select it as:
Select * from table (function (param1, param2))
now I want to combine this with a table so that the settings for the service we get from the join table. Is this possible? And how?
I tried different options without success.
something like:
Select *.
table table (function (b.column1, b.columnb) x), tablea b
where x.a = b.col
Is this possible?
Thanks in advance?user564819 wrote:
something like:
Select *.
table table (function (b.column1, b.columnb) x), tablea b
where x.a = b.colIs this possible?
Somehow...
SQL> create or replace type TIntegers is table of integer; 2 / Type created. SQL> SQL> --// our sample pipeline simply spews 2 numbers for eevry number input - simple SQL> --// to use for the testcase below SQL> create or replace function FooPipe( n number ) return TIntegers pipelined is 2 begin 3 pipe row( trunc(n) ); 4 pipe row( trunc(n)*-1 ); 5 return; 6 end; 7 / Function created. SQL> SQL> with dataset( n ) as( 2 --// ignore this part as it only builts a base table 3 --// for us to use to select values for input to 4 --// to the pipeline - in "real world" use this table 5 --// will already exist 6 select 7 level 8 from dual 9 connect by level <= 10 10 ), 11 pipe_line( n, array ) as( 12 --// we run the pipeline as a nested table column 13 --// in the SQL projection - the CAST is important 14 --// in order to establish the nested table type 15 select 16 d.n, 17 cast( 18 FooPipe(d.n) as TIntegers 19 ) 20 from dataset d 21 ) 22 --// we now use a standard query to unnest the nested table column 23 select 24 p.n, 25 pipe_val.* 26 from pipe_line p, TABLE(p.array) pipe_val 27 / N COLUMN_VALUE ---------- ------------ 1 1 1 -1 2 2 2 -2 3 3 3 -3 4 4 4 -4 5 5 5 -5 6 6 6 -6 7 7 7 -7 8 8 8 -8 9 9 9 -9 10 10 10 -10 20 rows selected. SQL>
Not sure I like it. What is the real problem that this method (driving a pipeline with input of a base table rows) is supposed to address? There may be a simpler and more elegant approach...
-
help join you a table nested with ordinary table
IM creating a nested table object prtcnpt_info codelist. In a block anonymous im saying t_code as type nested table codelist.
Now when I try to join the table nested to ordinary table oracle DB and I get the error: PL/SQL: ORA-00904: "COLUMN_VALUE": invalid identifier.
Please help me on this and provide link tutorial about this concepts... Here is the code I wrote
-Start code.
create or replace type prtcnpt_info as an object (identification number
, name varchar2 (200)
(, code varchar2 (30));
create type codelist is the prtcnpt_info table;
declare
t_code codelist.
Start
Select prtcnpt_info (b.pid, b.name, pt.code) in bulk collect into t_code
party pt
mc_code b
where pt.cd in ("AAA", "BBB")
and pt.ptype_id = b.pt_type_id;
INSERT INTO table (ID
RUN_ID
DATA
P_ID
)
SELECT id
run_id
data
prtct.id-> 1
IN table_2 t2
, (by selecting column_value in table (t_code)) prtct
WHERE prtct.id = t2. P_ID; -> 2
end;
-End code;
also of the anonymous block
1 = > is this right until you get the id value (b.pid) of the tablet_code nested as prtct alias?
2 = > is this right until you reach the nested with ordinary table table? I want to join the id column in the tables.
Published by: 914912 on April 30, 2012 02:11Write the insert like this and try
insert into table ( id , run_id , data , p_id ) select id, run_id, data, prtct.id from table_2 t2 table(t_code) prtct where prtct.id = t2.p_id;
Maybe you are looking for
-
In the new synchronization is the option "overwrite local/remote data" driveway?
I noticed that I can't decide if the synchronization must be connected server to the client, the client to the server or two-way. And I know it was an option (a must) with the previous version of synchronization (if I remember correctly 3 choices wer
-
How to transfer files from old PC of office to the new Satellite L750?
Hi everyone - starting at this site so be gentle with me please. Specifically, I want to ask: (a) Will the MS Word 7 Starter, which is already installed on my computer Toshiba laptop accept a lot of files from my old Desk Top for most Word documents?
-
How can I reset administrator password in Windows CE?
Urgent RPL
-
Accidentally deleted card reader, how to restore?
Hello, I tried to "eject" safe my sd card in the reader and I accidentally selected "remove hardware safely". Now my computer won't see or recognize the H, I, J or K readers (who have been readers of card reader). They just do not appear at all in
-
Interactive text boxes print as black streaks
Recently, many users have had problems with PDFs of incorrect impression. This sounds like something that a PDF file with interactive fields. When a user prints these PDF files, most of the interactive fields will be printed as shown below:The only s