Problem loading xml using sql loader file

I am trying to load data into the table test_xml (xmldata XMLType)

I have an xml file and I want any file to load in a single column

When I use the following control file and run from the command-line as follows
sqlldr $1@$TWO_TASK direct control=$XXTOP/bin/LOAD_XML.ctl = true; :

DOWNLOAD THE DATA
INFILE *.
TRUNCATE INTO TABLE test_xml
XmlType (XMLDATA)
FIELDS
(
tank fill ext_fname (100),
XMLDATA LOBFILE (ext_fname) COMPLETED BY expressions of folklore
)
START DATA
U01/appl/apps/apps_st/appl/XXTop/12.0.0/bin/file. XML

the file is loaded in the table perfectly.

Unfortunately I can't hard-code the name of file as file name will be changed dynamically.

so I removed the block

START DATA
U01/appl/apps/apps_st/appl/XXTop/12.0.0/bin/file. XML

control file and tried to run by giving the following command line path

sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl direct data=/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml = true;

But strangely it attempts to load each line of the xml file in the table instead of the whole file

Please find the log of the program with the error

------------------------------------------------------------------
Loading XML through SQL * Loader begins
------------------------------------------------------------------
SQL * Loader-502: cannot open the data file ' <? XML version = "1.0"? > ' table field TEST_XML XMLDATA
SQL * Loader-553: file not found
SQL * Loader-509: System error: no such file or directory
SQL * Loader-502: cannot open the data file '< root >' XMLDATA field table TEST_XML
SQL * Loader-553: file not found
SQL * Loader-509: System error: no such file or directory
SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML
SQL * Loader-553: file not found
SQL * Loader-509: System error: no such file or directory
SQL * Loader-502: cannot open the data file ' < Type > forms < / Type > ' table field TEST_XML XMLDATA
SQL * Loader-553: file not found
SQL * Loader-509: System error: no such file or directory
SQL * Loader-502: cannot open the data file ' < / ScriptFileType > ' table field TEST_XML XMLDATA
SQL * Loader-553: file not found
SQL * Loader-509: System error: no such file or directory
SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML
SQL * Loader-553: file not found
SQL * Loader-509: System error: no such file or directory
SQL * Loader-502: cannot open the data file ' < Type > PLL < / Type > ' table field TEST_XML XMLDATA
SQL * Loader-553: file not found
SQL * Loader-509: System error: no such file or directory
SQL * Loader-502: cannot open the data file ' < / ScriptFileType > ' table field TEST_XML XMLDATA
SQL * Loader-553: file not found
SQL * Loader-509: System error: no such file or directory
SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML

Please help me how can I load full xml in a single column using command line without Hardcoding in the control file

Published by: 907010 on January 10, 2012 02:24

But strangely it attempts to load each line of the xml file in the table instead of the whole file

Nothing strange, that the data parameter specifies the file containing the data to load.
If you use the name of the XML here, the control file will try to interpret each line of XML as being separate ways.

The traditional approach this is to have the name of the file stored in another file, say filelist.txt and use, for example:

echo "/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml" > filelist.txt
sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=filelist.txt direct=true;

Tags: Oracle Development

Similar Questions

  • Problems loading files RAW of Canon 6 d to 10 items

    Items 10 - Windows: I've been using the software for a couple of years and never had a problem loading the RAW files from my Canon T2i ir 60 d, however I just bought a Canon 6 d and when I try to load a RAW of the 6 d I get a cannot open ' C:\User... CR2 "because it's the wrong type of file.  I thought that cameraraw 6.5 patch would be the solution but when trying to install I get "error loading workflow Updater.

    Refer

    http://helpx.Adobe.com/Creative-Suite/KB/camera-raw-plug-supported-cameras.html

    http://helpx.Adobe.com/x-productkb/global/camera-raw-compatible-applications.html

    The Canon 60 d requires that Camera Raw 6.2 (or later) that is compatible with the 10 elements (or later version).

    Canon 6 d requires that Camera Raw 7.3 (or later) that is compatible with 11 elements (or later version). Items 10 is not compatible with Camera Raw 7.3.

    Then you must either upgrade a) 12 items to open and edit files Raw 6 d or b) use the free Adobe DNG converter to convert the 6 d DNG Raw files - adds an extra step in the workflow. Then, edit the DNG in 10 items.

    http://www.Adobe.com/products/Photoshop/extend.displayTab2.html

    It is regrettable to photography digital camera upgrade usually means that the upgrade of software post-processing so.

  • Problem loading file to Unicode of SQL Loader

    Hi all

    Here is the example of my file of data that is stored in Unicode format.

    ARPNBYFIPNMASUNAKB


    where the first two characters should be read and put Column1 it is to say "AR" Column2 "PN" so on and so forth.

    Here is the content of the control file that I used

    (OPTIONS)

    DOWNLOAD THE DATA

    CHARACTERSET 'AL32UTF8.

    CHARACTERS OF LENGTH SEMANTICS

    INFILE 'C:\infile.txt '.

    BADFILE "C:\badfile.bad."

    DISCARDFILE 'C:\discard.dsc '.

    IN THE HPR.tab TABLE

    INSERT

    TRAILING NULLCOLS

    ("column1", TANK (2),

    (2) TANK "column2,"

    .

    .

    .

    TANK (2) "column9".

    )

    When I try to load the file into DB I see

    Column1 contains 'null' column2 contains 'A' Column3 contains 'R '.

    Here is the HPR.tab descr

    NameNull type

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

    Column1VARCHAR2 (2 CHAR)
    Column2

    VARCHAR2 (2 CHAR)

    .

    .

    .

    column9VARCHAR2 (2 CHAR)

    Select * from NLS_DATABASE_PARAMETERS;

    Value of the parameter

    NLS_LANGUAGE AMERICAN

    NLS_TERRITORY AMERICA

    NLS_CURRENCY $

    NLS_ISO_CURRENCY AMERICA

    NLS_NUMERIC_CHARACTERS.,.

    AL32UTF8 NLS_CHARACTERSET

    NLS_CALENDAR GREGORIAN

    NLS_DATE_FORMAT DD-MON-RR

    NLS_DATE_LANGUAGE AMERICAN

    NLS_SORT BINARY

    NLS_TIME_FORMAT HH.MI. SSXFF AM

    NLS_TIMESTAMP_FORMAT-DD-MON-RR HH.MI. SSXFF AM

    NLS_TIME_TZ_FORMAT HH.MI. SSXFF AM TZR

    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI. SSXFF AM TZR

    NLS_DUAL_CURRENCY $

    BINARY NLS_COMP

    NLS_LENGTH_SEMANTICS BYTES

    NLS_NCHAR_CONV_EXCP FAKE

    NLS_NCHAR_CHARACTERSET AL16UTF16

    NLS_RDBMS_VERSION 11.2.0.1.0

    can someone tell me what is the problem?

    * Note: Assume that if the data file is saved as normal text so data will load correctly in DB.

    * But my data file contains characters of japaneese I need to save the file in Unicode format.

    "Unicode format" can mean Unicode UTF-16 encoding, especially if it comes to Windows Notepad. In the case of a UTF-16 file, CHARACTERSET parameter in the control file should say UTF16 and the file must have the character of-brand-order of byte (BOM) at the beginning or you must specify the byte order. For more information, see Oracle database utilities Guide.

    Thank you

    Sergiusz

  • How to load xml using sql loader data?

    Is there any load script of XML data in a table through sql loader?

    Help me out here...

    Thank you

    You can post your code here? while I can help you... your code format should be like this...

    Example code:

    DOWNLOAD THE DATA

    INFILE *.

    IN THE TABLE po_tab

    ADD

    XMLTYPE (xmldata)

    FIELDS

    (xmldata TANK (2000))

    BEGINDATA

    "" http://www.Oracle.com/po/"xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"

    "" xsi: schemaLocation = "http://www.oracle.com/PO http://www.oracle.com/scha0/po1.xsd"

    orderDate = "1999-10-20" >

    Alice Smith

    123 maple Street

    Mill Valley

    CA

    90952

    Robert Smith

    8 oak Avenue

    Old town

    PA

    95819

    Hurry, my lawn is going wild!

    Lawn mower

    1

    148.95

    Confirm this is electric

    Baby monitor

    1

    39.98

    1999-05-21

  • Two problems in the use of LKM file to sql

    Hi all
    "I met two problems during use' LKM sql file" to load the data from the CSV to oracle db. Please try to help me, thank you very much!

    my environment:
    OS: win 7
    ODI version: 11g

    The 1st condition is: in step 10 of the session to execute, a table called "." SNP_CHECK_TAB"which could not be created in oracle will be created!
    If I change to SNP_CHECK_TABLE, the stage will pass...
    Why appoint the table like that?

    create the table. SNP_CHECK_TAB
    (
    CATALOG_NAME VARCHAR2 (100 CHAR) NULL,
    SCHEMA_NAME VARCHAR2 (100 CHAR) NULL,
    RESOURCE_NAME VARCHAR2 (100 CHAR) NULL,
    FULL_RES_NAME VARCHAR2 (100 CHAR) NULL,
    ERR_TYPE VARCHAR2 (1 CAR) NULL,
    ERR_MESS VARCHAR2 (250 CHAR) NULL,
    CHECK_DATE DATE NULL,.
    ORIGINAL VARCHAR2 (100 CHAR) NULL,
    CONS_NAME VARCHAR2 (35 CHAR) NULL,
    CONS_TYPE VARCHAR2 (2 CHAR) NULL,
    ERR_COUNT NUMBER (10) NULL
    )

    The 2nd condition is: I want to filter certain name in the source table and the filter string is ' BRE.name! ='some_value ""»
    When I clicked on the button "Test query", indicates the following error message: "error during execution of invalid request format description.
    It works well when the db of the source is oracle, why not drop? Is there any format for the filter string in the file? I don't think so...


    Jun

    The 1st issue is coming because in topology---> your---> work Server schema is not specified.

    Can you elaborate on 2nd question?

  • Help in what concerns the generation of XML using SQL/XML

    I wrote the following SQL to generate a XML report. Tb_ken_lg_mstr of the table is the primary table of the workforce. Tb_ken_loans_base and tb_ken_cards_base tables are tables containing the cards and loans to sales by sales in tb_ken_lg_mstr people.

    The problems that I face, is that:

    1. even when there are sales people have not made a sale, that is, they have no documents tb_ken_cards_base and tb_ken_loans_base, yet their records are appearing the XML. I want to avoid this and only dirty people who have the list sales. A workaround is to use NOT EXISTS in the outer query more with tb_ken_lg_mstr. Is there a better way?

    2 can anyone confirm that the approach used to combine the tables tb_ken_cards_base and tb_ken_loans_base is correct or not. Basically, I want to publish a report of sales person (tb_ken_lg_mstr) and all its sales (tb_ken_cards_base and tb_ken_loans_base).

    3. the XML output is coming in a single line rather than in a hierarchical format.

    I use 10.2 g
    WITH TB_KEN_LG_MSTR AS(
    SELECT 97 SALES_CODE , 'Christine' NAMES, 'LOANS' SPECIALIZATION, '03-SEP-07' DATE_REPORTED, TO_DATE('30-JUN-2010') SYSTEM_DATE FROM DUAL UNION ALL 
    SELECT 112, 'Winn ', 'LOANS', '03-SEP-07', TO_DATE('30-JUN-2010') FROM DUAL  UNION ALL 
    SELECT 093, 'Lydh ', 'LOANS', '03-SEP-07', TO_DATE('30-JUN-2010') FROM DUAL  UNION ALL 
    SELECT 107, 'Nai ', 'LOANS', '03-SEP-07', TO_DATE('30-JUN-2010') FROM DUAL  UNION ALL 
    SELECT 065, 'Jat', 'LOANS', '03-SEP-07', TO_DATE('30-JUN-2010')  FROM DUAL UNION ALL 
    SELECT 980, 'Mreen ', 'LOANS', '27-AUG-07', TO_DATE('30-JUN-2010') FROM DUAL ),
    TB_KEN_CARDS_BASE AS(
    SELECT 97 SALES_CODE,  46766 REFERENCE_NUMBER, 'BC' PRODUCT_TYPE, 'DECLINE' CURRENT_STATUS, 'I' APPLICANT_IS, TO_DATE('30-JUN-2010') SYSTEM_DATE FROM DUAL UNION ALL 
    SELECT 97, 46374, 'BC', 'DECLINE', 'I', TO_DATE('30-JUN-2010') FROM DUAL UNION ALL 
    SELECT 112, 46106, 'BC', 'DECLINE', 'I', TO_DATE('30-JUN-2010') FROM DUAL UNION ALL 
    SELECT 112, 44263, 'BC', 'APPROVAL', 'I' , TO_DATE('30-JUN-2010')FROM DUAL UNION ALL 
    SELECT 112, 46269, 'BC', 'APPROVAL', 'I', TO_DATE('30-JUN-2010') FROM DUAL UNION ALL 
    SELECT 093, 4618, 'BC', 'DECLINE', 'I', TO_DATE('30-JUN-2010') FROM DUAL) ,
    TB_KEN_LOANS_BASE AS(
    SELECT 093 SALES_CODE, 16 BRANCH_NUMBER, '18512' ACCOUNT_NUMBER, '8' ACCOUNT_TYPE, 'DECLINED' FINAL_DECISION, '2000000' LOAN_AMOUNT, '-1' TOP_UP_AMOUNT, TO_DATE('30-JUN-2010') SYSTEM_DATE FROM DUAL UNION ALL 
    SELECT 093, 3, '14719', '3', 'DECLINED', '100000', '172.65' , TO_DATE('30-JUN-2010') FROM DUAL UNION ALL 
    SELECT 107, 9, '11444', '7', 'AUTHORISED', '200000', '-1', TO_DATE('30-JUN-2010') FROM DUAL UNION ALL 
    SELECT 107, 75, '1570', '8', 'AUTHORISED', '2000000', '1626670.3', TO_DATE('30-JUN-2010') FROM DUAL UNION ALL 
    SELECT 066, 40, '10229', '7', 'AUTHORISED', '288000', '228478.35', TO_DATE('30-JUN-2010') FROM DUAL)
    select xmlelement("SALES_DATA",
           xmlagg(
                  xmlelement("SALES_CODE",
                             xmlattributes(c.sales_code),
                             xmlforest(c.names,
                                       c.specialization,
                                       c.date_reported),
                             (select xmlagg(
                                           xmlelement("CARD_DETAILS",
                                                      xmlattributes(a.reference_number),
                                                      xmlforest(a.product_type,
                                                                a.current_status,
                                                                a.applicant_is)
                                                     )
                                           )
                               from tb_ken_cards_base a
                               where system_date=TO_DATE('30-JUN-2010')
                               and a.sales_code = c.sales_code),
                               (select xmlagg(
                                           xmlelement("LOAN_DETAILS",
                                                      xmlattributes(b.branch_number, b.account_number),
                                                      xmlforest(b.account_type,
                                                                b.final_decision,
                                                                b.loan_amount,
                                                                b.top_up_amount)
                                                     )
                                           )
                               from tb_ken_loans_base b
                               where system_date=TO_DATE('30-JUN-2010')
                               and b.sales_code = c.sales_code)
                               )
                 )
                    )
    from tb_ken_lg_mstr c
    where system_date=TO_DATE('30-JUN-2010');

    Using NOT EXIST would be to do the scan of table twice. What I don't understand is why Oracle is picking up Sales_Codes missing in tb_ken_loans_base or tb_ken_cards_base, even if I do an inner join?

    You do not have an inner join, you only access TB_KEN_LG_MSTR in the main query.
    What you do in the SELECT part are scalar subqueries just on each of your tables of the child, who is unable to filter the main table in the first place.

    NOT EXISTS is indeed a solution, or consider doing all of the joins in the FROM clause, as I suggested above, like this:

    ...
    FROM TB_KEN_LG_MSTR c
         LEFT OUTER JOIN tb_ken_cards_base a ON a.sales_code = c.sales_code
         LEFT OUTER JOIN tb_ken_loans_base b ON b.sales_code = c.sales_code
    WHERE a.sales_code IS NOT NULL
    OR b.sales_code IS NOT NULL
    ...
    

    But then the subgroups becomes more difficult with this approach.

    Regarding the third question, how I format in Oracle? If not possible in Oracle then what other ways are?

    10.2, you can use this trick to format the output:

    SELECT xmlelement( ... ).extract('/*').getClobVal() FROM ...
    
  • There was a problem loading of files that can be restored

    Hello. I am currently using OSSierra and 10 for my iPhone and iPad iOS. I activated this thing where you save your desktop stuff on your iCloud then accidentally deleted. I tried to restore them in iCloud restoration but it goes on to say: "there was a problem loading files that can be restored. Please Try Again Later ".

    Please help me. I can't lose these files forever.

    The files have been deleted icloud or Mac. ?

    Good day

  • Problem loading XML file on the server hosting

    I have a question wher the lods of XML data very well file and displays on my server testingg but returns "undefined" when uploaded to the server hosting.

    The page can be found at http://www.merryheartpuppets.com/index3.html

    The ActionScript for the clip is included below:

    The SWF works! and the xml data are read and displayed correctly. I always get an error when you try to view the slideshow.xml in the browser even with the changes.

    I think that the happy ending is the result of several things:
    1 make the changes suggested by GWD and
    2 pointing the domain to the appropriate folder. For some reason, the hosting server was not pointing to the folder to which I had originally put in it. Then, I changed it. But the change doesn't take effect for some reason any. In any case, after further investigation, I got the domain pointing to the appropriate subfolder and the swf file is working now.

    Thank you all for your patience to input and advice. I could not successfully achieved this without your intervention. TX!

  • Problem loading xml with the method file

    I use this method to insert in the xmltype table

    INSERT INTO xml_table
    VALUES (XMLType (bfilename ('XMLDIR', 'Test_xml.xml'),
    nls_charset_id ('AL32UTF8')));

    XML gives error
    <? XML version = "1.0"? >
    <!-<! DOCTYPE metadata SYSTEM "http://www.esri.com/metadata/esriprof80.dtd" >->
    < metadata XML: lang = "fr" > < Esri > < MetaID > {299847D5-3DDC-4375-9469-607DC669DD6E} < / MetaID > < CreaDate > 20091029 < / CreaDate > < CreaTime > 12035600 < / CreaTime > < SyncOnce > FALSE < / SyncOnce > < SyncDate > 20091029 < / SyncDate > < SyncTime > 12054400 < / SyncTime > < ModDate > 20091029 < / ModDate > < $modtime > 12054400 < / $modtime > < / Esri > < idinfo > < native Sync = "TRUE" > Microsoft Windows XP Version 5.1 (build 2600) Service Pack 3; ESRI ArcCatalog 9.3.0.1770 < / native > < descript > < langdata Sync = "TRUE" > en < / langdata > < summary > REQUIRED: a brief narrative summary of the data series. < / Summary > < point > REQUIRED: a summary of the intentions with which all the data has been developed. < / purpose >

    but when I delete
    <!-<! DOCTYPE metadata SYSTEM "http://www.esri.com/metadata/esriprof80.dtd" >->

    It runs successfully and the value is inserted of xmltype
    Please suggest how can I insert original xml without error.

    First see if you can access the document using HTTPURITYPE() or UTL_HTTP. Once you've taken the necessary step to access the scheam XML using these packages XDB should work. Note that becomes more complex 11.x

  • Question to load data using sql loader in staging table, and then in the main tables!

    Hello

    I'm trying to load data into our main database table using SQL LOADER. data will be provided in separate pipes csv files.

    I have develop a shell script to load the data and it works fine except one thing.

    Here are the details of a data to re-create the problem.

    Staging of the structure of the table in which data will be filled using sql loader

    create table stg_cmts_data (cmts_token varchar2 (30), CMTS_IP varchar2 (20));

    create table stg_link_data (dhcp_token varchar2 (30), cmts_to_add varchar2 (200));

    create table stg_dhcp_data (dhcp_token varchar2 (30), DHCP_IP varchar2 (20));

    DATA in the csv file-

    for stg_cmts_data-

    cmts_map_03092015_1.csv

    WNLB-CMTS-01-1. 10.15.0.1

    WNLB-CMTS-02-2 | 10.15.16.1

    WNLB-CMTS-03-3. 10.15.48.1

    WNLB-CMTS-04-4. 10.15.80.1

    WNLB-CMTS-05-5. 10.15.96.1

    for stg_dhcp_data-

    dhcp_map_03092015_1.csv

    DHCP-1-1-1. 10.25.23.10, 25.26.14.01

    DHCP-1-1-2. 56.25.111.25, 100.25.2.01

    DHCP-1-1-3. 25.255.3.01, 89.20.147.258

    DHCP-1-1-4. 10.25.26.36, 200.32.58.69

    DHCP-1-1-5 | 80.25.47.369, 60.258.14.10

    for stg_link_data

    cmts_dhcp_link_map_0309151623_1.csv

    DHCP-1-1-1. WNLB-CMTS-01-1,WNLB-CMTS-02-2

    DHCP-1-1-2. WNLB-CMTS-03-3,WNLB-CMTS-04-4,WNLB-CMTS-05-5

    DHCP-1-1-3. WNLB-CMTS-01-1

    DHCP-1-1-4. WNLB-CMTS-05-8,WNLB-CMTS-05-6,WNLB-CMTS-05-0,WNLB-CMTS-03-3

    DHCP-1-1-5 | WNLB-CMTS-02-2,WNLB-CMTS-04-4,WNLB-CMTS-05-7

    WNLB-DHCP-1-13 | WNLB-CMTS-02-2

    Now, after loading these data in the staging of table I have to fill the main database table

    create table subntwk (subntwk_nm varchar2 (20), subntwk_ip varchar2 (30));

    create table link (link_nm varchar2 (50));

    SQL scripts that I created to load data is like.

    coil load_cmts.log

    Set serveroutput on

    DECLARE

    CURSOR c_stg_cmts IS SELECT *.

    OF stg_cmts_data;

    TYPE t_stg_cmts IS TABLE OF stg_cmts_data % ROWTYPE INDEX BY pls_integer;

    l_stg_cmts t_stg_cmts;

    l_cmts_cnt NUMBER;

    l_cnt NUMBER;

    NUMBER of l_cnt_1;

    BEGIN

    OPEN c_stg_cmts.

    Get the c_stg_cmts COLLECT in BULK IN l_stg_cmts;

    BECAUSE me IN l_stg_cmts. FIRST... l_stg_cmts. LAST

    LOOP

    SELECT COUNT (1)

    IN l_cmts_cnt

    OF subntwk

    WHERE subntwk_nm = l_stg_cmts (i) .cmts_token;

    IF l_cmts_cnt < 1 THEN

    INSERT

    IN SUBNTWK

    (

    subntwk_nm

    )

    VALUES

    (

    l_stg_cmts (i) .cmts_token

    );

    DBMS_OUTPUT. Put_line ("token has been added: ' |") l_stg_cmts (i) .cmts_token);

    ON THE OTHER

    DBMS_OUTPUT. Put_line ("token is already present'");

    END IF;

    WHEN l_stg_cmts EXIT. COUNT = 0;

    END LOOP;

    commit;

    EXCEPTION

    WHILE OTHERS THEN

    Dbms_output.put_line ('ERROR' |) SQLERRM);

    END;

    /

    output

    for dhcp


    coil load_dhcp.log

    Set serveroutput on

    DECLARE

    CURSOR c_stg_dhcp IS SELECT *.

    OF stg_dhcp_data;

    TYPE t_stg_dhcp IS TABLE OF stg_dhcp_data % ROWTYPE INDEX BY pls_integer;

    l_stg_dhcp t_stg_dhcp;

    l_dhcp_cnt NUMBER;

    l_cnt NUMBER;

    NUMBER of l_cnt_1;

    BEGIN

    OPEN c_stg_dhcp.

    Get the c_stg_dhcp COLLECT in BULK IN l_stg_dhcp;

    BECAUSE me IN l_stg_dhcp. FIRST... l_stg_dhcp. LAST

    LOOP

    SELECT COUNT (1)

    IN l_dhcp_cnt

    OF subntwk

    WHERE subntwk_nm = l_stg_dhcp (i) .dhcp_token;

    IF l_dhcp_cnt < 1 THEN

    INSERT

    IN SUBNTWK

    (

    subntwk_nm

    )

    VALUES

    (

    l_stg_dhcp (i) .dhcp_token

    );

    DBMS_OUTPUT. Put_line ("token has been added: ' |") l_stg_dhcp (i) .dhcp_token);

    ON THE OTHER

    DBMS_OUTPUT. Put_line ("token is already present'");

    END IF;

    WHEN l_stg_dhcp EXIT. COUNT = 0;

    END LOOP;

    commit;

    EXCEPTION

    WHILE OTHERS THEN

    Dbms_output.put_line ('ERROR' |) SQLERRM);

    END;

    /

    output

    for link -.

    coil load_link.log

    Set serveroutput on

    DECLARE

    l_cmts_1 VARCHAR2 (4000 CHAR);

    l_cmts_add VARCHAR2 (200 CHAR);

    l_dhcp_cnt NUMBER;

    l_cmts_cnt NUMBER;

    l_link_cnt NUMBER;

    l_add_link_nm VARCHAR2 (200 CHAR);

    BEGIN

    FOR (IN) r

    SELECT dhcp_token, cmts_to_add | ',' cmts_add

    OF stg_link_data

    )

    LOOP

    l_cmts_1: = r.cmts_add;

    l_cmts_add: = TRIM (SUBSTR (l_cmts_1, 1, INSTR (l_cmts_1, ',') - 1));

    SELECT COUNT (1)

    IN l_dhcp_cnt

    OF subntwk

    WHERE subntwk_nm = r.dhcp_token;

    IF l_dhcp_cnt = 0 THEN

    DBMS_OUTPUT. Put_line ("device not found: ' |") r.dhcp_token);

    ON THE OTHER

    While l_cmts_add IS NOT NULL

    LOOP

    l_add_link_nm: = r.dhcp_token |' _TO_' | l_cmts_add;

    SELECT COUNT (1)

    IN l_cmts_cnt

    OF subntwk

    WHERE subntwk_nm = TRIM (l_cmts_add);

    SELECT COUNT (1)

    IN l_link_cnt

    LINK

    WHERE link_nm = l_add_link_nm;

    IF l_cmts_cnt > 0 AND l_link_cnt = 0 THEN

    INSERT INTO link (link_nm)

    VALUES (l_add_link_nm);

    DBMS_OUTPUT. Put_line (l_add_link_nm |) » '||' Has been added. ") ;

    ELSIF l_link_cnt > 0 THEN

    DBMS_OUTPUT. Put_line (' link is already present: ' | l_add_link_nm);

    ELSIF l_cmts_cnt = 0 then

    DBMS_OUTPUT. Put_line (' no. CMTS FOUND for device to create the link: ' | l_cmts_add);

    END IF;

    l_cmts_1: = TRIM (SUBSTR (l_cmts_1, INSTR (l_cmts_1, ',') + 1));

    l_cmts_add: = TRIM (SUBSTR (l_cmts_1, 1, INSTR (l_cmts_1, ',') - 1));

    END LOOP;

    END IF;

    END LOOP;

    COMMIT;

    EXCEPTION

    WHILE OTHERS THEN

    Dbms_output.put_line ('ERROR' |) SQLERRM);

    END;

    /

    output

    control files -

    DOWNLOAD THE DATA

    INFILE 'cmts_data.csv '.

    ADD

    IN THE STG_CMTS_DATA TABLE

    When (cmts_token! = ") AND (cmts_token! = 'NULL') AND (cmts_token! = 'null')

    and (cmts_ip! = ") AND (cmts_ip! = 'NULL') AND (cmts_ip! = 'null')

    FIELDS TERMINATED BY ' |' SURROUNDED OF POSSIBLY "" "

    TRAILING NULLCOLS

    ('RTRIM (LTRIM (:cmts_token))' cmts_token,

    cmts_ip ' RTRIM (LTRIM(:cmts_ip)) ")". "

    for dhcp.


    DOWNLOAD THE DATA

    INFILE 'dhcp_data.csv '.

    ADD

    IN THE STG_DHCP_DATA TABLE

    When (dhcp_token! = ") AND (dhcp_token! = 'NULL') AND (dhcp_token! = 'null')

    and (dhcp_ip! = ") AND (dhcp_ip! = 'NULL') AND (dhcp_ip! = 'null')

    FIELDS TERMINATED BY ' |' SURROUNDED OF POSSIBLY "" "

    TRAILING NULLCOLS

    ('RTRIM (LTRIM (:dhcp_token))' dhcp_token,

    dhcp_ip ' RTRIM (LTRIM(:dhcp_ip)) ")". "

    for link -.

    DOWNLOAD THE DATA

    INFILE 'link_data.csv '.

    ADD

    IN THE STG_LINK_DATA TABLE

    When (dhcp_token! = ") AND (dhcp_token! = 'NULL') AND (dhcp_token! = 'null')

    and (cmts_to_add! = ") AND (cmts_to_add! = 'NULL') AND (cmts_to_add! = 'null')

    FIELDS TERMINATED BY ' |' SURROUNDED OF POSSIBLY "" "

    TRAILING NULLCOLS

    ('RTRIM (LTRIM (:dhcp_token))' dhcp_token,

    cmts_to_add TANK (4000) RTRIM (LTRIM(:cmts_to_add)) ")" ""

    SHELL SCRIPT-

    If [!-d / log]

    then

    Mkdir log

    FI

    If [!-d / finished]

    then

    mkdir makes

    FI

    If [!-d / bad]

    then

    bad mkdir

    FI

    nohup time sqlldr username/password@SID CONTROL = load_cmts_data.ctl LOG = log/ldr_cmts_data.log = log/ldr_cmts_data.bad DISCARD log/ldr_cmts_data.reject ERRORS = BAD = 100000 LIVE = TRUE PARALLEL = TRUE &

    nohup time username/password@SID @load_cmts.sql

    nohup time sqlldr username/password@SID CONTROL = load_dhcp_data.ctl LOG = log/ldr_dhcp_data.log = log/ldr_dhcp_data.bad DISCARD log/ldr_dhcp_data.reject ERRORS = BAD = 100000 LIVE = TRUE PARALLEL = TRUE &

    time nohup sqlplus username/password@SID @load_dhcp.sql

    nohup time sqlldr username/password@SID CONTROL = load_link_data.ctl LOG = log/ldr_link_data.log = log/ldr_link_data.bad DISCARD log/ldr_link_data.reject ERRORS = BAD = 100000 LIVE = TRUE PARALLEL = TRUE &

    time nohup sqlplus username/password@SID @load_link.sql

    MV *.log. / log

    If the problem I encounter is here for loading data in the link table that I check if DHCP is present in the subntwk table, then continue to another mistake of the newspaper. If CMTS then left create link to another error in the newspaper.

    Now that we can here multiple CMTS are associated with unique DHCP.

    So here in the table links to create the link, but for the last iteration of the loop, where I get separated by commas separate CMTS table stg_link_data it gives me log as not found CMTS.

    for example

    DHCP-1-1-1. WNLB-CMTS-01-1,WNLB-CMTS-02-2

    Here, I guess to link the dhcp-1-1-1 with balancing-CMTS-01-1 and wnlb-CMTS-02-2

    Theses all the data present in the subntwk table, but still it gives me journal wnlb-CMTS-02-2 could not be FOUND, but we have already loaded into the subntwk table.

    same thing is happening with all the CMTS table stg_link_data who are in the last (I think here you got what I'm trying to explain).

    But when I run the SQL scripts in the SQL Developer separately then it inserts all valid links in the table of links.

    Here, she should create 9 lines in the table of links, whereas now he creates only 5 rows.

    I use COMMIT in my script also but it only does not help me.

    Run these scripts in your machine let me know if you also get the same behavior I get.

    and please give me a solution I tried many thing from yesterday, but it's always the same.

    It is the table of link log

    link is already present: dhcp-1-1-1_TO_wnlb-cmts-01-1

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-02-2

    link is already present: dhcp-1-1-2_TO_wnlb-cmts-03-3
    link is already present: dhcp-1-1-2_TO_wnlb-cmts-04-4

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-5

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-01-1

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-8
    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-6
    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-0

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-03-3

    link is already present: dhcp-1-1-5_TO_wnlb-cmts-02-2
    link is already present: dhcp-1-1-5_TO_wnlb-cmts-04-4

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-7

    Device not found: wnlb-dhcp-1-13

    IF NEED MORE INFORMATION PLEASE LET ME KNOW

    Thank you

    I felt later in the night that during the loading in the staging table using UNIX machine he created the new line for each line. That is why the last CMTS is not found, for this I use the UNIX 2 BACK conversion and it starts to work perfectly.

    It was the dos2unix error!

    Thank you all for your interest and I may learn new things, as I have almost 10 months of experience in (PLSQL, SQL)

  • Problem loading XML content.

    Hello, when I open Dreamweaver CS6 I now get this message at the bottom right of the window and do not know what he's trying to tellme. Clicking on it does nothing.

    Meaasage is:

    Problem loading XML content.

    You have requested a language ("en_IL") that has no content available.

    In suggestions he shows English, United States.

    I don't know why this has happened. But I managed to get rid of this message on my computer. It seems "application.xml" file points to the incorrect language for content files folder.

    On my computer, the program is installed in C:\Program Files (x 86) \Adobe\Adobe Dreamweaver CS6. If you can navigate to this file using your file manager (in my case 'File Explorer', in point 8.1 of Windows), see the listed folders.

    On my installation, note that there is a record of language called "en_US", and there are a bunch of files that it contains. I think that this is where are stored the content files, for my installation. There is also a folder called "amt".

    Open the folder "amt". You will see that there is a load of files of the language, including en_IL and en_US. also note the files listed at the bottom of this issue, in particular the application file "." XML ". I edited this file by right clicking on it and choosing "Edit". However, when I tried to save the change, I got the message "access denied." I don't have permissions to edit and save the file. So, before editing the file once again, I changed the permissions of the file as follows.

    In the file Explorer, right click on the file "application.xml" and select "Properties". Click on the tab 'Security' "Edit" (to change the permissions). Select "users". In the lower window, click on "full control". Then click on 'Ok '. Then click 'Ok' again on the next page.

    Assuming that it worked, you should now be able to edit and save the file in the application ".» XML ".

    Then, right-click on the file name "application.xml" and choose "Edit". It's a text file, so I edited in the "Notepad". Halfway the page, you will see the term "en_IL". Change this to "en_US" (or whatever the name of the other folder is in your installation folder (see paragraph 3 above). Save the file.

    Open Dreamweaver and see if the message has disappeared, replaced by a tip.

  • problem loading XML default namespace

    I'm loading multiple xml/rss files. For some of them I have to use the namespace (atom feed)

    so I write these lines

    var atom: Namespace = new Namespace ("http://www.w3.org/2005/Atom" "");

    var rssXML:XML = new XML();
    lack of namespace xml = Atom;

    I test this in an outside my program, but when I integrate it in my main program, it seems that it is at odds with all the other xml

    the problem is: xml = Atom namespace default

    How to set a namespace only for an xml object?

    I try different way, but did not get from anywhere

    Thank you


    You can declare the namespace in XML (but do it before you create XML object):

    var namespace1:Namespace = new Namespace("http://www.w3.org/2005/Atom");
    default xml namespace = namespace1;
    var xml1:XML =  ;
    trace(xml1.namespace());
    
    var namespace2:Namespace = new Namespace();
    default xml namespace = namespace2;
    var xml2:XML =  ;
    trace(xml2.namespace());
    
    var namespace3:Namespace = new Namespace("http://www.example.com/schema");
    default xml namespace = namespace3;
    var xml3:XML =  ;
    trace(xml3.namespace());
    

    Trace

    http://www.w3.org/2005/Atom
    
    http://www.example.com/schema
    

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

  • How to use SQL * Loader to load the XMLType column with other columns?

    Hello

    I try to use sqlldr to load an XML file into a table with an XMLType column. I have found many examples where the entire table is an xmltype, but I'd like to load a lot of XML objects in a generic table for treatment with a single XMLType column and other columns to identify the load. A simple example, I have a constant column which I want to put during the download.

    The following example does not work: (.) No error either.

    create the table xml_upload
    (the varchar2 (10) of upload_type not null,)
    donnees_xml XMLType)
    /

    my control file:
    DOWNLOAD THE DATA
    INFILE * add
    IN THE TABLE xml_upload
    XMLType (xml_data)
    FIELDS ENDED BY ',' POSSIBLY FRAMED BY "" "
    (
    constant upload_type MARKET,
    donnees_xml
    )
    BEGINDATA
    < SALE_ORDER >
    TIM < CUST_CODE > < / CUST_CODE >
    < ORDER_NUM > 1234 > < / ORDER_NUM >
    < / SALE_ORDER >


    $ sqlldr my.ctl

    SQL * Loader: Release 10.2.0.4.0 - Production on Sun Sep 27 22:51:52 2009

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    Commit the point reached - the number of logical records 4

    SQL > select * from xml_upload;
    no selected line
    SQL >

    Any ideas on how I can do this? Did I miss something...

    I also played with the clause sqlldr lobfile, also without success.

    Current database version is 10g R2.

    Thank you
    Tim.

    The following works in 11.1.0.6

    LOAD DATA
    INFILE *
    INTO TABLE xml_upload TRUNCATE
    (
     upload_type constant 'MARKET'
    ,file_name filler char(100)
    ,xml_data LOBFILE (file_name) TERMINATED BY EOF
    )
    BEGINDATA
    test.xml
    
    SQL> select upload_type,xmlserialize(document xml_data no indent) from xml_upload;
    
    UPLOAD_TYP XMLSERIALIZE(DOCUMENTXML_DATANOINDENT)
    ---------- ----------------------------------------------------------------------
    MARKET        1
    
    SQL> 
    
  • Couldnot load file or assembly 'sorttbls.nlp' or one of its dependencies. The system cannot find the file specified using SharePoint Designer 2007

    I have a computer on my network when you open web files WSS 3 in SharePoint Designer 2007, I get the error 'could not load file or assembly 'sorttbls.nlp' or one of its dependencies. The system cannot find the specified file. "I have looked through some forms on the web and have concluded that this is a problem of .NET Framework 2, but I have not managed to solve the problem. He also seems to be keep me to load the Update Services administration console on a workstation by using MMC. Other posts on my network can open/edit SharePoint web site files in SharePoint Designer 2007 without this error and open the Administrative Update Services console withpout errors. I tried a repair on .NET 2. Anyone have any suggestions on another approach to fixing .NET?

    Thanks for your suggestions.

    Jeff

    Hello

    -What is the operating system installed on your computer?

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public.

    Please ask your question in the Forum on TechNet Support. You can follow the link to your question:
    http://social.technet.Microsoft.com/forums/en-us/sharepointgeneral/threads

  • U - SQL error: could not load file or assembly 'ScopeEngineManaged.dll '.

    Hello

    I downloaded 'Azure Data Lake Tools for Visual Studio' for Visual Studio 2013 and installed.

    I created a sql - u script and try to run on the local computer. I am getting error below.

    "1 E_CSC_SYSTEM_INTERNAL error: internal error! Could not load file or assembly 'ScopeEngineManaged.dll' or one of its dependencies. The specified module could not be found. 1 1 USQLApplication1 Samples\USQLApplication1\USQLApplication1\M12PostCodes.usql D:\Nagaraju\Hitachi\Datalake.

    Please help me solve this problem.

    Note: If this isn't the correct category, please route to the appropriate queue.

    Concerning

    NK

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)

    If you give us a link to the new thread we can point to some resources it

Maybe you are looking for