Associating a header for his record in detail record in SQL Loader

I have a SQL loader script that loads the data in 2 separate tables, a table containing the header and one giving details. Once the charge is completed there is no way of knowing what element is associated with his header.
Is there a way to associate a header record with its corresponding details?

Published by: 934858 on May 16, 2012 16:49

>
2. the header and detail have the item number in the column
>
So I expect that 'Article number' provides the association.

If this isn't the case, then show the header and detail DDL table and some sample data and remember where is the problem.

This is why I am asking about (and you do not answer) how data loading; a single file or two, flat or hierarchical, files etc. to see how your sql * control of loading script dealt with data.

Tags: Database

Similar Questions

  • Issue when inserting records from sql loader

    Hello
    I'm trying to insert record of sql loader, but it's inclusion only a row.
    Help, please.

    Check the log file of causes.

  • Extraction of multiple logical records through sql loader

    Hello gurus,
    I have a few questions about the sql loader. I m totally new to this, I've never used, this is the first time that I m using

    1.
    How can I find the position of the character number or a number? I have to physically count the position? is it textpad metering or usage in a specific way to do this?
    I know it sounds like a silly question... but I wanted to know if there is a better way to do

    2.
    example data 
    
    1119 Smith      1120 Yvonne 
    1121 Albert     1130 Thomas 
    
    The following control file extracts the logical records:
    
    INTO TABLE emp 
         (empno POSITION(1:4)  INTEGER EXTERNAL, 
          ename POSITION(6:15) CHAR) 
    INTO TABLE emp 
         (empno POSITION(17:20) INTEGER EXTERNAL, 
          ename POSITION(21:30) CHAR)
    ---

    2 can it please contact what is the "null deptno = white if"? "»
    deptno POSITION(1:2)  INTEGER EXTERNAL(2)
                  NULLIF deptno=BLANKS,
    I really appriciate it ~
    Thank you

    Hello

    The NULLIF means white load as NULL

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14215/ldr_field_list.htm#sthref1129

    Not sure I understand your first question. Of course you know the file format, TextPad might be an ok tool to determine this format for a fixed-width file.

    Concerning
    Peter

  • SQL Loader for single registration repetitive data reading

    Hello

    I have my incoming data as follows:
    NAME, ID, Date1, Date2, Date3 Date4
    AST1_IDX1_EXCH_SERIES1, TD234512, (20070314,130000,112.5), (20070313,120000,112), (20070312,130000,116), (20070309,130000,115)
    AST2_IDX2_EXCH_SERIES2, TD234524, (20070314,130000,123.5), (20070313,120000,120.9), (20070312,130000,126.1), (20070309,130000,135.2)

    I have my DB such as:
    Create table (FACTOR)
    NAME VARCHAR2 (50).
    ID VARCHAR2 (20).
    DATE OF CLOSE_DATE,
    NUMBER OF CLOSE_TIME
    CLOSE_VALUE NUMBER (20,10)
    )

    I want to load the data so that the first two values go in columns (NAME, ID) and the other triplets go to the fields (CLOSE_DATE, CLOSE_TIME, CLOSE_VALUE) several times depending on the number of those present triplets. Is it possible to do so using SQL Loader?

    I'm trying to load this file (containing approximately 40000 these records) using SQL loader and tried options using CONTINUEIF, OBJECT of COLUMN, etc. but nothing works for me. Guidance in this regard will be highly appreciated.

    Thank you
    POOJA
  • Is it possible to disable the "edit layout" link on the Details page for the record

    Is it possible to disable the "edit layout" link on the Details page for the record? Not home pages, I know there is a switch for that, but I thought that it was one for the detail pages?

    I want to disable what I don't want users who record their own layouts, they stick to the related sections defined in the default layout. The problem is that if they want to have access to some lists associated with when the opportunity is of a certain type, but NOT other types. If they saved the page layout (using the "Change layout" link) and change the record type, they will see the related provisions that were set to "Not available" in the default layout (IE step 4) for this 'type '.

    Robbo, for now it is not possible to disable the page layout to change the Registration Details page.

  • Report of the Summit with the details below for a record

    Hello

    I'm looking for an answer to my problem:

    We have a report that contains many ~ 60.

    And is not very user-friendly because it is so wide table.

    It is possible to see some less important columns as information additional report below.

    for a single record in the report. For example, the user selects the radio button of the first column and details are updated for this record.

    (if it is possible to group information in tabs)

    Thank you very much for your answers.

    Hello

    Here is an example

    https://Apex.Oracle.com/pls/Apex/Apex/f?p=39006:41

    Create a hidden item which is not protected. In my case the name of the element is P41_DEPTNO

    First report query

    select
    APEX_ITEM.RADIOGROUP(1,DEPTNO,:P41_DEPTNO) AS rg,
    EMPNO,
    ENAME,
    JOB,
    MGR,
    HIREDATE,
    SAL,
    COMM,
    DEPTNO
    FROM EMP
    

    Second report query

    select LOC,
      DNAME,
      DEPTNO
    from DEPT
    WHERE DEPTNO = :P41_DEPTNO
    

    In the second region report defined the elements of the Page to submit your name for the hidden item.

    Create dynamic action

    -event: change

    -Selection Type: jQuery Selector

    -jQuery selector: input [name = f01]

    -Action: Value set

    -Set type: Expression JavaScript

    -Expression JavaScript: this.triggeringElement.value;

    -Selection Type: Item (s)

    -Article (s):

    Then add an another true dynamic action event

    -Action: update

    -Selection Type: region

    -Region:

  • The default values on the retail block for dummy record gets inserted in detail blk

    Hi all

    I have a master block
    a block of detail and a detail for detail block block

    For every master I have or have no certain records in the block of retail

    for each master, I have a few detail records

    for each detail record I may or may not have the corresponding detail records

    Let's take an example
    I navigate a primary record to the detail record.
    in the 3rd block of retail, there is no record for the record in detail, but I have some default values.

    Now I navigate to the 3rd block of detail and I do not insert records and then exit the screen

    Here oracle asks me to save all the changes I made (I did no changes)
    and by clicking on Yes, there is a dummy record is created for a 3rd detail record

    Please help me

    Thank you

    This is the default values are to mark the block as being changed. That's why you get the message "do you want to save the changes.

    I suggest that you fill out elements of the base with the default values table and fill out the matching elements from the base on a prior insertion trigger table.

  • Unable to launch of programs such as excel, quicken, or adobe error: "this file has no program associated with it for performing this action.

    Original title: launch.

    I can't (suddenly) the launch of programs such as excel, quicken, or adobe.  Don't know what can happen - error msgs include things like "this file does not have a program associated with it for performing this action.  "creat a link control panel ' and 'the application failed to start because its side by side configuration is incorrect.  Please see the application for more details event"

    What can solve allow applications to start using my vista computer.

    Jim

    In Control Panel (and select Classic discovered in the left pane) select programs and features and then right-click on the program and choose repair if available.

    If the repair is not available to uninstall and reinstall the program.

    Post back with what is happening.

  • Error, the file doesn't have a program associated with it for performing this action

    I click on a document file and get "this file has no program associated with it for performing this action. Create an association in the set Associations control panel.

    How to create an association in the bound control panel the value?

    It must also have the written program file installed on your computer.

    If a .doc file, you need to Word or a Word Viewer, etc., etc.:

    file .doc or .docx Word need extensions or a Word Viewer to read.
    .xls Excel need.
    need for .pps PowerPoint

    Here are the download links for free Microsoft Word, Excel and PowerPoint viewers:

    http://www.Microsoft.com/downloads/details.aspx?FamilyId=3657ce88-7cfa-457a-9aec-f4f827f20cac&displaylang=en

    Word Viewer

    View, print and copy Word documents, even if you don't have Word installed. This download is a replacement for Word Viewer 2003 and all previous Word Viewer versions.

    http://www.Microsoft.com/downloads/details.aspx?FamilyId=1CD6ACF9-CE06-4E1C-8DCF-F33F669DBC3A&displaylang=en

    Excel Viewer

    Open, view, and print Excel workbooks, even if you don't have Excel installed. This download is a replacement for Excel Viewer 97 and all previous Excel Viewer versions.

    http://www.Microsoft.com/downloads/details.aspx?FamilyId=048dc840-14e1-467D-8dca-19d2a8fd7485&displaylang=en

    PowerPoint 2007 Viewer

    Microsoft Office PowerPoint 2007 Viewer allows you to view the presentations of all the features created in PowerPoint 97 and later versions.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    And here is a link to a set of free office of Applications:

    http://www.OpenOffice.org/

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    How to set file Associations:

    http://articles.TechRepublic.com.com/5100-10878_11-6172036.html

    How do I... Change file extension associations in Windows Vista?

    See you soon. Mick Murphy - Microsoft partner

  • This file does not have a program associated with it for performing this action. Please install a program or, if such is already installed, create an association in the default programs control panel

    Hello-

    I'm looking for here (or get) help directed to the right forum regarding an error message I got when trying to open a PDF file.  The error message indicates "this file does not have a program associated with it for performing this action.  Please install a program or, if such is already installed, create an association in the default programs control panel. "To be quite honest, I don't have the slightest idea as to what to do with respect to this message and I need some advice ASAP.  I have the latest Adobe Acrobat Reader installed and if I have to contact them instead about my problem, please let me know.

    LeeBee

    Hi Leroy,

    I would like to know some information about the problem so that we can help you better.

    The question is specific to the PDF files?

    Thank you for details on the issue.

    I also know that the inconvenience that you are experiencing because of the problem mentioned. I will definitely help you.

    This problem may occur if the exact program is not associated with the file you are trying to open.

    I suggest you to set default programs and associate a file type with a program properly.

    Please see this link:
    Change programs that Windows 7 uses by default
    https://support.Microsoft.com/en-us/help/18539/Windows-7-change-default-programs

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • Explorer.exe: "this file doesn't have a program associated with it for performing this action. Please install a program or, if such is already installed, create an association in the default programs control panel. »

    I find this weird problem affecting that explorer.exe and not any other .exe files. When I open explorer.exe in the taskbar or the C:\Windows\explorer.exe, the dialog box opens and indicates "this file does not have a program associated with it for performing this action. Please install a program or, if such is already installed, create an association in the default programs control panel. ». The control panel default programs Dosen t State .exe in the list of protocols and I find it complicated to press the windows logo and click computer each time. Please tell me that there is a way to solve this problem by means of edit this record.

    I have not tried running sfc/scannow then chkdsk/f, two found no error.

    -------------------------------------------------------------------------

    Name of the operating system Microsoft Windows 7 Ultimate
    Version 6.1.7600 Build 7600
    Manufacturer of operating system Microsoft Corporation
    System Type X 86-based PC
    Processor Intel (r) Core (TM) 2 CPU Quad Q9300 @ 2.50 GHz, 2500 Mhz, 4 Lossnay, 4 logical processors
    Windows directory C:\Windows
    System directory C:\Windows\system32
    Boot Device \Device\HarddiskVolume1
    Locale Singapore
    Hardware Abstraction Layer Version = "6.1.7600.16385".
    Normal time zone schedule Malay Peninsula
    Installed RAM GB 5,00
    3.00 GB total physical memory
    936 MB available physical memory
    12.5 GB total virtual memory
    9,88 GB available virtual memory
    Page file space GB 9.47
    Paging file C:\pagefile.sys

    Hello brandongwh,

    Check out the post here for help with a solution that should help your problem with Explorer.exe.

    If this does not help, then please reply back and let us know.

    Thank you

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • His record game, my microphone is picking up all the sounds around me and to transfer them to my helmet.

    original title: his record game

    For some reason, all listening to ANYTHING on my computer with my headphones Bose, which are designed to eliminate all surrounding sounds, I hear all around me, including Tape this message, as if my microphone is picking up all the sounds around me and to transfer them to my helmet.  I have accidentally done to cause this, please?

    Thank you!!!

    Hello

    Click with the right button on the speaker near the right lower clock - recorders - then right click in the BOX
    and check also show a disabled device and show disconnected devices. Then double-click on your microphone and
    on the levels tab - MUTE it. You could also experiment with using a level lower or less thrust on this
    same tab.

    Connect a microphone, music player or other audio device to your computer - see 'connect a microphone.
    to your computer"which has an image of these parameters.
    http://Windows.Microsoft.com/en-us/Windows7/connect-a-microphone-music-player-or-other-audio-device-to-your-computer

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How to restore licenses Playready DRM for TV recorded after a hardware upgrade?

    See the thread that I started:
    http://www.thegreenbutton.TV/forums/viewtopic.php?f=5&t=1109

    At the end of this thread for my question about what breaks the Playready DRM, I stated here:
    http://support.Microsoft.com/kb/891664

    If there is an updated version of this KB article applicable to Windows 7 with Windows Media Player 12, then a pointer to such an article would probably prevent the need to respond to everything that follows.  For now, I guess there is no update instructions for restoring licenses.

    In time, I was reassured by Microsoft KB article that I could upgrade my HTPC hardware without losing the ability to play shows I had already recorded.

    I don't think much more on this subject until recently, when I decided that the time had come to make an upgrade.  So I went back to the article to see exactly what I had to do in preparation for the upgrade.  The first thing he says for me to do is to back up my licenses.  However, I am running Windows Media Player version 12 (which is what came with my Windows7 Home Premium), and it doesn't seem to provide a mechanism to back up the licenses.  This means that no such possibility of license-recovery-after-upgrade is available for me?   Or are there other mechanisms to back up my licenses?

    Even if there is another way to back up the licenses, I see that restore them after the upgrade still requires a feature that my version of Windows Media Player does not.  Then I also need access to an alternative mechanism of restoration.  Is this one?

    Looking around Windows Media Center, I can't find anything about the license management here either.

    Considering the article like a Kipper full in Windows 7, my ultimate real question is that in the header for this post.

    TV record types we are talking about here have copy - once protection and are recording using Windows Media Center has a CableCARD tuner.  I have a lot of them that I am not prepared to remove spied.

    Hi DavidVanserschel,

    You may be able to manually reset DRM licenses. Take a look at the steps in this thread.

  • an error "file does not have a program associated with it for performing this action" when you click office and recent places.

    Original title:

    Win7 victory explrer click dsktop & mployment plces & get eror msg file is not a CDSA wth to prfrmin ths field prgrm. pls instl one prgrm so is alrdy instld Credit Union assc ltvds cntrl pnl prgrms

    I don't know how to fix. Help, please.    Win7 windows Explorer click

    Office & recent locations & grterror msg:
    This file does not have a program associated with it for performing this action. Please install a program or, if it is already installed. create an asssociationin the default programs control panel.
     
    Information given in the new thread:
    Error Msg When you try open office spaces & recent since the win Explorer

    when im in windows Explorer and click on the desktop or the recent places the link I get a msg of error and they will not open, but all others open. I posted pictures of error msg to skydrive yesterday.

    Hello

    Welcome to the Microsoft Community Forums.

    I see you've found an error "file does not have a program associated with it for performing this action" when you click office and recent places.

    1. Have you made changes on the computer before this problem?
    2. What is the full error message?

    I suggest you to report to us the screenshot of the Advanced window so that we can understand what exactly the situation.

    See:
    Use SkyDrive download collected files and post screen shot/image
    http://social.technet.Microsoft.com/forums/en-us/w7itproui/thread/4fc10639-02dB-4665-993a-08d865088d65

    The average while you can try the following steps and check if the error reappears.

    Method 1:

    Step 1:

    Start the computer in safe mode and check the number.

    Some options, including the mode safe mode, start Windows in a limited State, where only the essential is started. If a problem doesn't reappear when you start in safe mode, you can eliminate the default settings and basic device drivers and services as a possible cause.

    Follow this link provided below to start your computer in safe mode.

    http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode

    Step 2:

    Put the computer to boot and check if the problem persists.

    To help resolve the error and other messages, you can start Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135

    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 3 of the KB article provided above.

    Method 2: I also suggest that you scan your computer with the Microsoft Security Scanner, which would help us to get rid of viruses, spyware and other malicious software.

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Important: During the scan of the hard drive if bad sectors are found, the scanner tries to repair this sector, all available on which data may be lost.

    It will be useful.

    Back with the details so that we can help you further. We also indicate the result of the suggested steps.

  • generation of XML for each record

    I have a table db with a few thousand records in it. I need to generate an xml file for each record so that it can power a search machine.

    Can someone help me with this? I could not get it. Here is the example of table.

    create table test_xml)

    number of U_ID

    title varchar2 (500),

    VARCHAR2 (500) keywords.

    Description varchar2 (500),

    VARCHAR2 (500) of the user.

    e-mail varchar2 (500),

    initiator_function varchar2 (500),

    function_impacted varchar2 (500),

    old_request_num varchar2 (500),

    project_region varchar2 (500)

    );

    insert into test_xml values (1, "Heading1 test", "blah bla1", "test 123 ', 1234567',' [email protected]', 'test init funct', 'funct hit test', '55556677', 'abc' ');

    insert into test_xml values (2, 'Title2 test', 'blah bla2', ' test 1232', 1234522',' [email protected]', 'test init funct2 ',' test power supply impacted2', ' 55556679', 'abcccs' ");

    the end result is an XML for each record in this format.

    <? XML version = "1.0" encoding = "utf-8"? >

    <! DOCTYPE gsafeed PUBLIC "-//Google//DTD GSA RSS / / IN" "" > "".

    < gsafeed >

    < header >

    < datasource > ID 1 < / datasource >

    < feedtype > full < / feedtype >

    < / header >

    <>Group

    " < analysis record immediately = 'true' url = ' http://test.com/SearchResult.php?id=1 "action = 'Add' mimetype =" text/html"lock ="true"> "

    < content > <! [CDATA]

    < html >

    < head >

    Heading1 test < title > < /title >

    < meta name = "Keywords" content = "bla bla1" / >

    < name meta = "description" content = "testing 123" / >

    < name meta = "user" content = "1234567" / >

    " < name meta = 'EMAIL' content = ' [email protected] " />

    < name meta = "Source" content = "1" / >

    < / head >

    < body >

    < p > user: 1234567

    < p > EMAIL: bob . [email protected] 

    < p > INITIATOR_FUNCTION: test init funct

    < p > FUNCTION_IMPACTED: test hit funct

    < p > OLD_REQUEST_NUM: 555566777

    < p > PROJECT_REGION: abc

    < /p > < / body >

    < / html >

    []] > < / content / >

    < / recording >

    < / Group >

    < / gsafeed >

    Thanks for any help.

    I'd use SQL/XML functions, more rapid way to generate XML from relational data data.

    Something like the following should you get.

    It displays a document (such as a CLOB) per line in the base table:

    with html_content as (
      select xmlcdata(
               xmlserialize(document
                 xmlelement("html"
                 , xmlelement("head"
                   , xmlelement("title", t.title)
                   , xmlelement("meta", xmlattributes('Keywords' as "name", t.keywords as "content"))
                   , xmlelement("meta", xmlattributes('description' as "name", t.description as "content"))
                   , xmlelement("meta", xmlattributes('user' as "name", t.user_ as "content"))
                   , xmlelement("meta", xmlattributes('EMAIL' as "name", t.email as "content"))
                   , xmlelement("meta", xmlattributes('Source' as "name", t.u_id as "content")) -- ??
                   )
                 , xmlelement("body"
                   , xmlelement("p", 'EMAIL: '||t.email)
                   , xmlelement("p", 'INITIATOR_FUNCTION: '||t.initiator_function)
                   , xmlelement("p", 'FUNCTION_IMPACTED: '||t.function_impacted)
                   , xmlelement("p", 'OLD_REQUEST_NUM: '||t.old_request_num)
                   , xmlelement("p", 'PROJECT_REGION: '||t.project_region)
                   )
                 )
                 indent
               )
             ) as content
      from test_xml t
    )
    select '' ||
           '' ||
           xmlserialize(document
             xmlelement("gsafeed"
             , xmlelement("header"
               , xmlelement("datasource", 'ID 1')
               , xmlelement("feedtype", 'full')
               )
             , xmlelement("group"
               , xmlelement("record"
                 , xmlattributes(
                     'true' as "crawl-immediately"
                   , 'http://test.com/searchresult.php?ID=1' as "url"
                   , 'add' as "action"
                   , 'text/html' as "mimetype"
                   , 'true' as "lock"
                   )
                 , xmlelement("content", html.content)
                 )
               )
             )
             indent
           )
    from html_content html ;
    

    NB: indent option is to print only, you can remove it if you don't need.

Maybe you are looking for