Need help with importing data in partition table
Hi,
DB:8.1.7
OS: win 2003 server
I have a table which is 4.5GB in size. I created a new partition table,with local indexes. I exported the original table with all indexes,triggers and procedures.
After creating the empty partitioned table,i imported the dump file. The data isn't loaded. My questions are:
1) Will the indexes be overwritten?
2) Will the data go automatically in allocated partitions?
3) Do i need to export only table data ignoring indexes,triggers etc?
Best Regards,
ateeqrahman wrote:
1) Will the indexes be overwritten?Not if they already exist with the same name, or with the same logical definition (ie. same columns are already indexed)
2) Will the data go automatically in allocated partitions?Yes
3) Do i need to export only table data ignoring indexes,triggers etc?Do you need the triggers? do you need indexes that you haven't created manually? What about grants?
Similar Messages
-
Need help with saving data and keeping table history for one BP
Hi all
I need help with this one ,
Scenario:
When adding a new vendor on the system the vendor is suppose to have a tax clearance certificate and it has an expiry date, so after the certificate has expired a new one is submitted by the vendor.
So i need to know how to have SBO fullfil this requirement ?
Hope it's clear .
Thanks
BonganiHi
I don't have a problem with the query that I know I've got to write , the problem is saving the tax clearance certificate and along side it , its the expiry date.
I'm using South African localization.
Thanks -
Need help with entering data into a table.
I just created a table, but I can't enter information. I don't want the data linked to a datasource. I just want it to save to the form like all of the other fields.
Even when I create a simple table, no ability to enter information. Please help. I know this must be a simple answer, but surprised that there is no response.
-
Seeking help in extracting data from partitioned table"YEARWISE".
Hi Experts,
I need a favour in extracting data YEARWISE like 'from 1999 to 2000.
Table is partitioned with around 40 partitions, and data I want to extract with sign ',' separating columns.So that I can move it to application as text file directly.
Plateform : Wind2k
Oracle Version : 8i
nls_date_format ...shows nothing..
sysdate is in : dd-mm-yyyy format
Here is my script, but so far it didn't yield anything...It looks like it is running, but I can see spool file with just 0 bytes.
Please check the script "May be I m doing something wrong" , help me out.
Let me also inform you that column ENDRETTID is with datatype DATE, so I put this column for sorting.
===========================================================================================
connect / as sysdba
spool e:\dumps\frdz_fintrans_txt.log
set heading off;
set pagesize 0;
set feedback off;
set echo off;
set pause off;
set termout off;
select BATCHID||','||
PRODUKTKODE||','||
OKODATO||','||
SAKSBEHANDLERID||','||
PRODDATO||','||
KJOPSDATO||','||
FRABINNR||','||
POSENTRYMODE||','||
ARSAKSKODE||','||
BELOPVAL||','||
BELOP||','||
BRANSJEKODE||','||
BRBREGNR||','||
BINNR||','||
POSTNR||','||
TRANSKODE||','||
FIRMANR||','||
KJOPSTYPEID||','||
KHBREGNR||','||
SENTRALNR||','||
REIMBURSMENTKODE||','||
AUTORISERT||','||
VALUTAKODE||','||
PRECARIND||','||
PAYMENTIND||','||
ATMACCOUNT||','||
POSTERMCAP||','||
POSPINCAP||','||
MAILTLFIND||','||
SPESCOND||','||
PROVISJON||','||
LANDKODE||','||
DATOID||','||
CHIDMETHOD||','||
ENDRETTID||','||
TERMINALID||','||
BRAND||','||
KURSPASLAG||','||
MCGEBYR||','||
ACQBIN||','||
LAND||','||
CARDTYPE||','||
DEBCRE||','||
DOMAIN||','||
CHIP||','||
REGION from vdv.fintrans WHERE ENDRETTID >= to_date('01-01-1999','DD-MM-YYYY') and ENDRETTID <=to_date('01-01-2000','DD-MM-YYYY');
spool off
exitNo Sir, no indexing on that column. Please help me with some easiest way to extract the data Yearwise.
COLUMN_NAME
COLUMN_POSITION TABLE_NAME
BATCHID
1 FINTRANS
KHBREGNR
1 FINTRANS
PRODDATO
1 FINTRANS
SQL>
======================
Description of the table is as:
SQL> desc vdv.fintrans;
Navn Null? Type
BATCHID NOT NULL NUMBER
PRODUKTKODE VARCHAR2(1)
OKODATO NUMBER(8)
SAKSBEHANDLERID VARCHAR2(8)
PRODDATO NUMBER(8)
KJOPSDATO NUMBER(8)
FRABINNR VARCHAR2(19)
POSENTRYMODE VARCHAR2(2)
ARSAKSKODE NUMBER(2)
BELOPVAL NUMBER(14)
BELOP NUMBER(14)
BRANSJEKODE NUMBER(4)
BRBREGNR NUMBER(4)
BINNR NUMBER
POSTNR NUMBER(4)
TRANSKODE NUMBER(2)
FIRMANR NUMBER(11)
KJOPSTYPEID NUMBER(2)
KHBREGNR NUMBER(4)
SENTRALNR NUMBER(3)
REIMBURSMENTKODE VARCHAR2(2)
AUTORISERT NUMBER
VALUTAKODE NUMBER(3)
PRECARIND VARCHAR2(1)
PAYMENTIND VARCHAR2(1)
ATMACCOUNT VARCHAR2(1)
POSTERMCAP VARCHAR2(1)
POSPINCAP VARCHAR2(1)
MAILTLFIND VARCHAR2(1)
SPESCOND VARCHAR2(2)
PROVISJON NUMBER(10,2)
LANDKODE VARCHAR2(2)
DATOID NUMBER(8)
CHIDMETHOD VARCHAR2(1)
ENDRETTID DATE
TERMINALID VARCHAR2(8)
BRAND VARCHAR2(1)
KURSPASLAG NUMBER(14)
MCGEBYR NUMBER(14)
ACQBIN NUMBER(6)
LAND VARCHAR2(2)
CARDTYPE VARCHAR2(2)
DEBCRE VARCHAR2(1)
DOMAIN VARCHAR2(1)
CHIP VARCHAR2(1)
REGION NUMBER(1)
=========
Tried also to create new table for a month...but it is just going on without any table creation or data insertion...just hung kind of thing
CREATE TABLE vdv.frdz AS (SELECT * FROM vdv.fintrans WHERE ENDRETTID >=to_date('01-01-1999','DD-MM-YYYY') AND ENDRETTID <=to_date('01-02-1999','DD-MM-YYYY')); -
Need help in retrieving data from database table
Hi ,
I have a Ztable with primary key.The table gets automatically sorted on primary key
But I want to retrieve the ztable data in the order in which i enter data in to table.
EXAMPLE :
I enter data as : mydata
action
welcome
When i retrieve this data internal table should be filled in the same order.
Your inputs will be very helpful.
Thanks in advance.You will need to change your table to use a number as the first key field (after the client) which you increase by 1 each time you make a new entry. Alternatively you can add a data/time stamp to the end of your table and use this to sort your internal table once you've extracted the records.
Regards,
Nick -
Need help in populating data in advanced table in oaf
Dear All,
I have a requirement as below:
I have a custom OAF page, from that i am invoking a popup page and from the popup page i am selecting some rows and populating in my base page advanced table region.
that is fine so next time when i am calling again the popup page and selecting some data and pressing button this time it is again populating properly in base page my requirement is i need to populate the old data that selected as well as new data wht selected, so every time the table refreshed with the data selected rather than keeping old data wht selected, can it be posibel please help me out.
ThnaksHi Vishnu,
in all sapscript for standard sap transaction cases, you can always find the original sap solution abd/or sap sample routines. Start from there and then look at your custom programming.
I can't explain in more detail because you do not give more detail.
Another frequent issue is that the sapscript form is not configure and activated correctly.
Anyway, follow this guide and find the solution ist possible.
Regards,
Clemensl -
Need help with disappearing header row in tables
Hey guys.
I'm working on a large document with tables (annual report). I have set up table styles with header and body cell styles. When I apply the table style to a table, then convert the first row to header row, the entire header row disappears...!
If I leave the row as body row and just apply the header cell style to it, it won't disappear. The row will only disappear if I convert it to header row in Indesign.
I checked the Word doc I imported the text from, the first row of the tables is just normal body row.
I dunno where to look so I have no idea how to fix this problem. It happens to all the tables. I was supplied this file. I don't particularly want to recreate the file. The original file was created in Creative Clouds and exported to idml for me as I have CS6.
Has anyone experienced the same problem or know what's the solution? I really need help.
Thanks in advance.It may be on the Table Options dailog box on the section of Headers and Footers> Header: Repeat Header the Skip First is check on.
-
I need help with a trigger mutating a table
I'll add the trigger I have written now at the bottom. Here is the problem that I have. We have employees and their families in an individual table.
A family is indicated by matching client, branch, and emp_id. An employee is indicated by individual_num = 1. All other numbers indicate family members. A person is determined to be terminated by having a date other than '2299/12/31' (It's a varchar(10) and very very wrong. Don't ask...) in the termination date column.
A family member can be terminated in the system independent of the rest of there family. However, if an employee is terminated then all active family members need the termination date set to the same date as the employee. If that termination date is then changed for the employee all family members with the same date need to have their dates updated.
I understand why this causes table mutation but I need a work around. Any ideas? Please...
CREATE OR REPLACE TRIGGER INDIV_EMP_TERM
after update on INDIVIDUAL
for each row
begin
if ( :new.INDIVIDUAL_NUM = 1 and :old.TERMINATION_DATE <> :new.TERMINATION_DATE ) then
if ( :old.TERMINATION_DATE = '2299/12/31' ) then
update INDIVIDUAL
set TERMINATION_DATE = :new.TERMINATION_DATE
where CLIENT = :new.CLIENT
and BRANCH = :new.BRANCH
and EMP_ID = :new.EMP_ID
and INDIVIDUAL_NUM <> 1
and TERMINATION_DATE = '2299/12/31';
else
update INDIVIDUAL
set TERMINATION_DATE = :new.TERMINATION_DATE
where CLIENT = :new.CLIENT
and BRANCH = :new.BRANCH
and EMP_ID = :new.EMP_ID
and INDIVIDUAL_NUM <> 1
and TERMINATION_DATE = :old.TERMINATION_DATE;
end if;
end if;
end;Try your code like this below .It will help you to eliminate the mutating error
create or replace PACKAGE test_update IS
type row_type is table of rowid index by binary_integer;
v_row row_type ;
v_index binary_integer ;
v_num integer := 0 ;
flag integer := 1 ;
END;
create or replace trigger test_up
before update
on test123
begin
select USR_ID
into test_update.v_num
from test123 ;
dbms_output.put_line ( 'before update '||test_update.v_num );
test_update.v_index := 0;
end ;
create or replace trigger test_up_after
after update
on test123
begin
dbms_output.put_line ( test_update.v_index );
test_update.flag := 0 ;
for i in 1 .. test_update.v_index loop
update test123
set UPD_BY = nvl(test_update.v_num ,0),
UPD_DATE = sysdate
where rowid = test_update.v_row(i) ;
end loop ;
test_update.flag := 1 ;
test_update.v_index := 0;
end ;
create or replace trigger test_1
after update on test123
for each row
begin
-- dbms_output.put_line ( 'after update test flag '||test_update.flag );
if test_update.flag = 1 then
test_update.v_index := test_update.v_index + 1 ;
test_update.v_row(test_update.v_index) := :old.rowid ;
end if ;
end ; -
Hi All,
When iam importing data into excel, leading zero's are truncating.
Eg: I have a column orgid in a table. Data is like 00067509,056429...
When importing into excel, leading zeros are truncated and orgid data shown in excel as 67509,56429...
Please help to get zero's in excel.you did not post info how you create the data to be available for excel. it is important to us that you also describe how you create the data. i will assume that you create the text file on oracle and i'll try to give an example as a workaround that might work to you. we create a .csv file that can be opened to excel and each of the column is enclosed by double quotes and separated by comma. the column whose values had leading zeroes we added an equal sign before enclosing them to a double quotes (e.g. ="000123456") this way when it is opened on excel it preserves the leading zeroes.
. -
Hi, I need help with the dates of plugins added to my browser
Hi I need to know what date a plugin was installed on my browser.
openh264 / video codec provided by cisco systems.
If you can't help, please point me in the direction of someone who can?
Any help greatly appreciated.The new "OpenH264 Video Codec provided by Cisco Systems, Inc." plugin that now shows up in the Firefox Add-ons Manager Plugins list was added in Firefox 33.0. It's installed in a subfolder of your [[Profiles|Firefox profile folder]], which you can confirm by typing '''about:plugins''' in the Firefox address bar to bring up a list of installed plugins (details [http://kb.mozillazine.org/Issues_related_to_plugins#Identifying_installed_plugins here]) and checking its "Path" entry .
The first link in the [https://www.mozilla.org/en-US/firefox/33.0/releasenotes/ Firefox 33.0 release notes] under What’s New, has this:
'''New''' | [http://andreasgal.com/2014/10/14/openh264-now-in-firefox/ OpenH264 support] * (sandboxed)
[*] Quoted from the linked page, http://andreasgal.com/2014/10/14/openh264-now-in-firefox/
(which also includes a [https://andreasgal.files.wordpress.com/2014/10/openh264.jpg screenshot] of the Add-ons Manager entry):
<blockquote>Today in collaboration with Cisco we are shipping support for H.264 in our WebRTC implementation. </blockquote>
<blockquote>Cisco has agreed to distribute OpenH264, a free H.264 codec plugin that Firefox downloads directly from Cisco.</blockquote>
<blockquote> Note: Firefox currently uses OpenH264 only for WebRTC and not for the <nowiki><video></nowiki> tag, because OpenH264 does not yet support the high profile format frequently used for streaming video. We will reconsider this once support has been added. </blockquote>
See also:
*https://wiki.mozilla.org/Media/WebRTC
*https://wiki.mozilla.org/GeckoMediaPlugins -
Need HELP with importing high definition tape
I am using Imovie 6HD - and trying to import a high definition tape from a CanonHV20. After importing the first tape I had a screen saying LETTERBOXING which went on for ever. I noticed it made black border tp/botom on the frames. I don't want that. What should I do - I have more tapes to import.
What settings do I need? As mentioned I used High Definition Tapes so I would like to have a high definition movie/dvd. Also after burning the dvd I suppose I can play that on any tv?? Please help with detail explanation!!
Thanks.teit wrote:
.. import a high definition tape from a CanonHV20. .. a screen saying LETTERBOXING ...
wrong setting on Import/New Project:
• select in New Project dialog 'HDV 1080i' or 'HDV720p' (=depends on your settings on your camcorder...)
... I would like to have a high definition .../dvd. ..
no such thing.. DVDs are allways 'Standard'-only.
• drag iM project file into iDVD = automatic conversion from HD>>SD .. -
Need help with Rollback data if there is error in Data load
Hi All,
We are trying to load data to Oracle 11g database. We want a trigger, procedure or something like that to rollback the data if there are errors in load. Is it possible to do rollback after all the records has been parsed ? So if we try to load 100 records and if there are 30 records with error, we want to rollback after all the 100 records are parsed.
Please advice.>
Thanks for the suggestion. I'll try that option. So currently we are only loading data that is validated and erroneous records are rejected using trigger. So we don't get any invalid data in table. But Now users are saying that all the records should be rejected if there is even one error in the data load.
>
I generally use a much simpler solution for such multi-stage ETL processes.
Each table has a IS_VALID column that defaults to 'N'. Each step of the process only pulls data with the flag set to 'Y'.
That allows me to leave data in the table but guarantee that it won't be processed by subsequent stages. Since most queries that move data from one stage to another ultimately have to read table rows (i.e. they can't just use indexes) it is not a performance issue to add a predicate such as "'AND IS_VALID = 'Y'" to the query that accesses data.
1. add new unvalidated data - automatically flagged an invalid by default of 'N" on IS_VALID column
2. run audit step #1 - capture the primary key/rowid of any row failing the audit.
3. run audit steps #2 through #n - capture error row ids
4. Final step - update the data setting IS_VALID to 'Y' only if a row passes ALL audits: that is, only if there are NO fatal errors for that row captured in the error table.
That process also allows me to capture every single problem that any row has so that I can produce reports for the business users that show everything that is wrong with the data. There are some problems that the business wan't to ignore, others that can be fixed in the staging tables then reprocessed and others that are rejected since they must be fixed in the source system and that can take several days.
For data that can be fixed in the staging tables the data is fixed and then the audit is rerun which will set the IS_VALID flag to 'Y' allowing those 'fixed' rows to be included in the data that feeds the next processing stage. -
Need Help in importing data through HTTP post by using OAF
Hello Everyone,
I have one requirement of importing data from Job Posting page of iRecruitment into other application or into other file like csv/xml/txt through HTTP post by using Oracle Application Framework.
Please help me out in the same if anyone know about how to achieve this kind of requirement.
Help is highly appreciated.
Thanks,
Arvind
Edited by: user636850 on Sep 18, 2009 5:35 AMHi Gaurav,
Thanks for your reply. I know about export button but my requirement is to import data into other web based application through HTTP post.
Thanks,
Arvind -
hii, all
i would like to compare between this date
CREATE TABLE HR.TEST_CHECK_IN
(CHECK_IN DATE);
INSERT INTO DATE VALUES ('01/3/1433');
INSERT INTO DATE VALUES ('02/3/1433');
INSERT INTO DATE VALUES ('03/3/1433');today in hijrah date is 28/2/1433
when i write this code it's working fine
SELECT TO_DATE(CHECK_IN) ,(TO_CHAR(sysdate+1,'DD-MM-YYYY','nls_calendar=''arabic hijrah''')) HIJRAH
FROM TEST_CHECK_IN
WHERE TO_DATE(CHECK_IN) >(TO_CHAR(sysdate+1,'DD-MM-YYYY','nls_calendar=''arabic hijrah'''))
RESULT
TO_DATE(CHECK_IN) HIJRAH
01/03/33 28-02-1433
02/03/33 28-02-1433
03/03/33 28-02-1433
when i use this code with oracle form builder 10 g he give me this error in run time
frm-40735 ora 01843
IF TO_DATE(:ROOM_DETAILS.CHECK_IN)>(TO_CHAR(sysdate+1,'DD-MM-YYYY','nls_calendar=''arabic hijrah''')) THEN
UPDATE ROOMS
SET WAITING = 'Y',
OCCUPIED= NULL
WHERE ROOM_ID = :ROOM_DETAILS.ROOM_ID;
END IF;
when i change my code to
SELECT TO_CHAR(CHECK_IN) ,(TO_CHAR(sysdate+1,'DD-MM-YYYY','nls_calendar=''arabic hijrah''')) HIJRAH
FROM TEST_CHECK_IN
WHERE TO_CHAR(CHECK_IN) >(TO_CHAR(sysdate+1,'DD-MM-YYYY','nls_calendar=''arabic hijrah'''))
RESULT --> NULL
TO_CHAR(CHECK_IN) HIJRAH
----------------- ----------And I would suggest that you use consistent datatypes in your tables when you test.
You have a test table that uses a DATE datatype:
CREATE TABLE HR.TEST_CHECK_IN
(CHECK_IN DATE);
INSERT INTO DATE VALUES ('01/3/1433');
INSERT INTO DATE VALUES ('02/3/1433');
INSERT INTO DATE VALUES ('03/3/1433');And a query that has ':ROOM_DETAILS.CHECK_IN' which may be a VARCHAR2.
Also you say you tried 849733's suggestion and used 'WHERE TO_DATE(CHECK_IN,'DD-MM-YYYY') ' and go no rows but this TO_DATE with a format string is the same as your original code so would have given the same three rows. -
Need help with enhanced data source in Production system
Hello Gurus,
1. I enhanced a datasource in BW and populated the field using customer exit using CMOD function. In Dev system, i dont have much data, so I deleted the whole data and did full load.
what shud I do in Production side, so that Delta wudnt be affected??since in production, we have millions of records, we wont do full load., what is the best way to populate the field in production after transporting the datasource to production without disturbing delta's, to reflect the new field for previous years data???
2. can we put 0customer and 0material in the same dimension?? how its going to affect the performance?
Thanks in advance.,
Best Regards,
PavanHi,
Please see this
1.
see this thread
populated the new field with historic data
2. can we put 0customer and 0material in the same dimension?? how its going to affect the performance?
Its better not to use them in a single dimension because one customer and take more than one material so if you have 100 customer and 1000 materials this combination will generate a large number of records. Its always better to keep characteristic which are having 1:N relation ship in one dimensional in you case customer and material will have an M:N type of relationship.which will result in slow performance.
Regards,
Ravi
Maybe you are looking for
-
IPhoto For iOS & iPod Touch 4G - Not Compatible... Why?
Hey there! Not to sound accusing or anything, but why has Apple blocked out the iPod Touch 4G when it has come to iPhoto? I mean, I have Pages, Numbers, Keynote, iMovie, and Garageband, and all of them work flawlessly. Why suddenly block off the last
-
Remove leading with negative values
Hello Expert, I have requirement in mapping where the QuantityShipped field values coming from the file and after transfomation the below output need to be mapped in the Idoc target filed MENGE. QuantityShipped filed defined as a sting in the datatyp
-
I have pages set to 50, and on the second page PL/SQL i get an error on the 30th thread down, the thread is "track the qeries that accessed a particular object during a time period", in the reples column: " An error in the system has occurred. Please
-
How can I get my ringtones back after I've updated my phone
How can I get my ringtones back after I've updated my phone
-
./fmsmgr server fmsadmin start Server:fmsadmin command:start ./fmsmgr: line 115: cd: fms: No such file or directory NPTL 2.3.4 Starting Adobe Flash Media Server (please check /var/log/messages) HELP ME?