Help with outdoor Table and multibyte data

I receive multibyte data in the flat file. After you download the end of UNIX, I am creating an external Table where I'll read the content and then push it to the Oracle Table.

Now, there are a few problems when inserting records in the table for which I need help!

1. the data file comes from AS / 400 systems that sets the DATE field zero when it is actually NULL in their end. Somehow I manipulated in code dynamically using case...

But I actually wanted to know that is there any loophole in the AND gets created with a NULL value in the field of date instead of 0. I don't want to handle this in the code dynamically.

2. I have a field with ABCDE VARCHAR2 (36), the table is created with lines nil.

But when I increase the precision of the field ABCDE to VARCHAR2 (55), the array is created with 36 ranks (actual number of lines in the file being 36).

But this is the strangest things when I ask max (length (ABCDE)) I get a result of 40.

Could someone help me please to diagnose the problem. Hope you guys can understand it becomes suicidal when at the end of the project, you just know that the data are not apt according to the length of field.

VARCHAR2 length syntax is:

1 explicit VARCHAR2(N CHAR) - N characters, N VARCHAR2(N BYTE)-bytes
2. implicit VARCHAR2 (N) - then it is controlled by the default BYTES NLS_LENGTH_SEMANTICS initialization parameter (which most likely is your case, you can issue a SHOW PARAMETER NLS_LENGTH_SEMANTICS in SQL * more to check).

Given that you use characters of butibyte, 36 bytes is not enough to fit all. Replace VARCHAR2 (36) by VARCHAR2 (36 TANK).

SY.

Tags: Database

Similar Questions

  • How to save a calendar I created with the photo and the dates recorded on separate pages?

    How to save a calendar I created in photoshop with the photo and the dates recorded in the form of two separate pages?  When I save in pdf or jpeg, they are automatically save 1 pg with dates and photos on a single page.  This is causing problems when I print.

    Hi there, in which case your printer is not very large, you can also trim down the two versions and print them as separate documents.

    (1) create a guide where you want to split the pages by clicking on the rule (hit control R if they are not displayed) and dragging to the desired location.

    Create the Guide to make it so be precise in the way which divide you your page, and so that no part of the image will be repeated or lost.

    (2) select the Cropping tool and adjust the area of culture at half top of your agenda, using the guide you have just made to align with the right place. Press return to complete the harvest.

    (3) go in file > save as the. Name the file something like calendar_top and select the desired file format. Press "Save".

    (4) once you return to your calendar file, go to the history Panel and select 'Guide to flirting This will bring you to step before you cropped the image.

    (5) repeat the steps as before to the bottom half of the schedule, once more, using the guide to help you make your growing area.

    Then you would just print each of the two pages individually. The images does not appear in a single document, but if you have Acrobat you could combine the files.

    I hope this helps!

  • How to create a file name variable with the County and the date?

    Objective: Create a file name variable with the County and the date

    Error: get a lot of error. Do you know how to change my code?

    Question: how to create a file name variable with the County and the date?

    Mini code:

    std::string * rawfilepath;
    std::string * rawfilename;

    rawfilepath = "./shared/documents/";
    RawFileName = rawfilepath + 'rawlog -' + 0 + '-.txt ';
    QFile file (rawfilename);
    If (file.exists ()) {}
    rawfilenamecount ++;
    RawFileName = "./shared/documents/rawlog-" + rawfilenamecount + "-.txt ';
    }

    Thank you for your attention,

    Thank tzander reminding me the idea. Method of cascades is not good for me because all of the kernel code is written by Native. If I change the channel to QString, I need to change a lot of codes.

    Solution is below.

    While (access (rawfilename, F_OK)! = - 1) {}
    rawfilenamecount ++;
    sprintf (format, RawFileName, rawfilenamecount);
    fprintf (stderr, "file exists");
    }

    Rawlog = fopen (rawfilename, "w"); Save the file in a specific path.
    fprintf (rawlog, "System Time (ms)" "");

  • Help with check boxes and actions

    Hello

    I just downloaded a trial version of LiveCycle Designer ES2 to see if this program works for the company that I work for. I need to create order forms for our products that our customers can fill out online and then send an e-mail to our sales department.

    I have imported our current order form to LiveCycle as a work of art and have inserted check boxes on the form. I want the form to automatically add the price of the option they checked off the retail price of total at the bottom of the form. Do you have any suggestions for me?

    Thank you!

    Stefan

    Hello Stefan,

    LC Designer is a very powerful application. While you can drag and drop objects on the form, for things really move you need to put a script in objects. This allows to control the way in which the form will be according to the users actions.

    To begin with there is help. If you have a look at the Action Builder in the Tools menu, you can select an object, then use the plain instructions accumulates the desired interaction. When you click OK, LC Designer will insert the necessary script.

    Therefore, there may be a steep learning curve, so it depends on how comfortable you are to roll up your sleeves and do some scripts.

    First, you must configure your workspace. This tends to be a personal preference, but here's a basic layout.

    It is a bit small, because of the scale, but you get the idea. At any time, you should be able to see the page, the hierarchy and the script editor. The object library and the range of the object and other palette must be close to hand as well.

    I am NOT inclined to import the form existing as work. This can limit the built-in options in LC Designer later. You can save your form existing in JPEG format and then in a new form to use the image object (value size full page) to display the image of the existing form.

    [ALTERNATIVE: you can also add fields to a PDF in Acrobat].

    Regarding scripting, the following JavaScript code should work in the click event of the checkbox (on the ground that the other field is named totalPrice).

    If (this.rawValue == 1)

    {

    totalPrice.rawValue = totalPrice.rawValue + 10;

    }

    on the other

    {

    totalPrice.rawValue = totalPrice.rawValue - 10;

    }

    This should take into account if the user changes of opinion and unticks the box.

    One thing to keep in mind about forms developed in the LC Designer, it is only the functions that will be available in the form (such as submit by e-mail in PDF format) will depend on whether the user has Acrobat or Reader, and also on whether the form has been active player (and how it has been activated). There is more information here: http://assure.ly/gYyYc2.

    I highly recommend JP Terry on LC Designer which is excellent - book "create dynamic with Adobe LiveCycle Designer Forms. It starts at the beginning and clearly sets out the key learning points. In the end, there are a few good examples that you can copy anywhere in your forms.

    We have solutions and blog posts on our website http://www.assuredynamics.com.

    There are also a range of online resources. You can find these resources useful:

    http://www.Adobe.com/go/learn_lc_scriptingBasics

    http://www.Adobe.com/go/learn_lc_scriptingReference

    http://www.Adobe.com/go/learn_lc_formCalc

    http://www.Adobe.com/devnet/LiveCycle/articles/Adobe_XML_Form_Object_M odel_Refer ence.pdf

    http://www.Adobe.com/devnet/Acrobat/PDFs/lc_migrating_acrobat_xmlform. PDF

    And a very convenient resource (and even if it's for version 6, it is still very good because of the way it is presented):http://partners.adobe.com/public/developer/en/tips/CalcScripts.pdf

    The HelpFile in the LC designer can also help with the syntax and LC designer itself comes with some great models and examples.

    Finally, discover the network of the developer on http://www.adobe.com/devnet/livecycle/

    A book that does not deal with the scripts at all, but is very good on the formatting is also ""does this work " by Caroline Jarrett and Gerry Gaffney."

    The Adobe "PDF forms Bible" is OK, but focuses mainly on AcroForms.

    WindJack Solutions have a service on subscription for the scripts and solutions tohttp://www.pdfscripting.com. There a lot of AcroForm script which can be modified according to LC designer and a growing library of LC Designer solutions.

    I hope this helps,

    Niall

  • Problem with table/table and past data capture

    Hi all

    Newbie is back and I have a problem with my program.

    A brief introduction of what I'm trying to do.

    I'll show you a failure to a system event.

    Based on each event, I will need to connect the error description, the tag, the fault start time and duration.

    All the event information will be displayed on the front table and this table will increase when new event occurred.

    For descriptions and tags - this is fixed based on what fault affects, respectively.

    The issue I'm having is to capture time.

    What I have in mind is to use the time to enter the start time and duration also.

    Departure time is not question because once I press boolean = true, it gives the start time.

    For the duration, when I press boolean = false, it wil give the total duration.

    However, I have a problem as follows:

    (1) to capture what a comprehensive data set (for example / / Desc: fault 1, Tag: one, start time: 2008-12-16 11:15:06 duration: 0 00:00:05) and it passed inside the trap fault Table.

    (2) if the same failure has occurred, it will overwrite the latest information. However, I need to keep the display of old and new events.

    Please notify.

    Opinions and suggestions are welcome mosssssst.

    Million thanks in advance.

    Hi Roziela,

    Thanks for the post and I hope that your well today.

    You must add logic to detect the change of the event (no fault to fault) and produce a Boolean result by 'raising' edge.

    I have a code to do this,

    Let me know what you think,

  • Need help with SQL/PL/SQL for Dates

    Hi Experts - need help with a SQL query.

    I need to insert some date fields in a table called CALENDAR_PERIOD.

    Current data in CALENDAR_PERIOD table with their data types:

    STARTPERIOD (DATE) YEAR (NUMBER) PERIOD_LABEL (Varchar2 255)

    02/11/2014 2014 2014/02/11 SUN

    03/11/2014 2014 14/03/11 MON

    04/11/2014 2014 11/04/14 MAR

    I have to increment above values up to the year 2025. I don't know how to write SQL and increment of these values.

    Ex: My next value should insert: 05/11/2015 2014 11/05/14 WED like that I need to insert data until 12 31, 2025.

    Can you please help me with PL/SQL block?

    Really appreciate your help!

    DB version:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    PL/SQL Release 11.2.0.3.0 - Production

    CORE Production 11.2.0.3.0

    AMT for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production

    NLSRTL Version 11.2.0.3.0 - Production

    Thank you
    Sandy

    Hello Sandy,

    Maybe something like

    INSERT INTO calendar_period (startperiod, year, period_label)

    SELECT DATE '' 2014-11-04 + LEVEL

    , TO_NUMBER (TO_CHAR (DATE '' 2014-11-04 + LEVEL, "YYYY"))

    , TO_CHAR (DATE '' 2014-11-04 + LEVEL, "MM/DD/YY DY")

    OF the double

    CONNECT BY LEVEL<= date="" '2025-12-314="" -="" date="">

    ;

    ((mais je ne comprends pas pourquoi nous créons une telle table "année" et "period_label" peuvent être calculé à partir de startperiod))

    Best regards

    Bruno Vroman.

  • Problems using the tools of accessibility on PDF interactive with complex tables and fields in form (in AcroDC)

    Hello

    Although I worked earlier in the accessibility check (will be abbreviated as "axs" later) before using the Checker axs documents, what he used Windows and Acrobat XI a year ago. I am now responsible for creating interactive forms that are available on a Mac (platform I prefer), that have been designed only visually in InDesign, then transferred in Acrobat X or XI where someone placed the form fields and then handed to me to settle the tab for end-users order and make them accessible to people with disabilities (Government org). Problem is, some of these documents are extremely dense arrays, in which each cell of the table is a checkbox or a radio button I have several questions:

    (1) the order of reading has something to do with the tab order? (I spent hours to get the tab order works the way it should and do not know if by clicking any axs tool that will change and cancel all my work.)

    (2) I need to mark an entire page, more or less, as a table but when I am in reading of editing tool (TURO), I get the crosshairs of hanging around that object, but when I go to playback control panel, and then click Table, everything is deselected and nothing else happens. My goal is to get to the table to label the lines headings and column editor, etc. What is going on? What I have to do all this in the Panel tags instead?

    (3) in the Panel tags, I see a table with 30 lines, which is what I have visually, but when I select the TRs and TDs nothing gets selected on the form, so I don't know how to get the content of the form "in" these TDs... it is a very complicated document and I'm getting confused. " Not a lot of experts out there on Axs AND Acrobat DC dealing with this and I'm frustrated! There's a guy on Lynda.com including videos watched re: similar topics, but in his case, he got a table which is just text and it is small, and his method is by selecting each cell of the table with the cross and he the tags labeling a 'cell', and then go in the Panel and work on the appropriate type / # Table elements slide autour stuff in the appropriate lines etc. My picture has lines 30 and 13 columns, and approaching the fields of interactive form in most of the cells... This is not practical, but do not know if there is a quick/accurate way to get the table recognized otherwise?

    Any help is appreciated...

    Sorry,

    Very frustrated

    Yes, treating large complex tables can be the chore of accessibility PDF much time and frustrating. First question - these tables of data or layout tables? Several forms are organized visually using layout tables, but do not really present data organized in rows and columns. Marking this content in a table would be run against failure condition Matterhorn Protocol 15-004, "content is marked as a table of information that is not organized in rows and columns. Instead, work in the Tags pane, drag all the elements of content out of the structure of the table and re-tag/organize according to the needs. The Suite of PDF/UA reference has an example of form (document 10) that you can refer to-although its layout tables is relatively low. A simple structure, detroit forward should be easier to fix at a large table and also easier for a user to read assistive technology.

    However, if these are legitimate data tables... I find the reading pane to be worse than useless. The Tags pane sets the reading order for assistive technology. Something that I find useful is to break down a complex table into manageable pieces, clean up the subtables can recombine. You can also consider assessing NetCentric CommonLook - I do not use it, but it has a good reputation for working with arrays. I don't think it's available for Mac, however.

  • Select the name of the table and some data in the same sql

    If anyone can help with this?

    I need the name of the selection table that have columns called col1 (which could be done with the help of dba_tab_columns) and col1 data itself.

    Here is my desired outcome:

    table_name col1

    alex tab1
    tab2 bob
    .... ....
    Tabn sue

    TIA.

    You can use a cross join, like this...

    SELECT ut.table_name
    x.column_name
    OF some_table_name x
    ut user_tables
    WHERE ut.table_name = upper ('some_table_name');

    or...

    SELECT ut.table_name
    x.column_name
    OF some_table_name x CROSS JOIN user_tables ut
    WHERE ut.table_name = upper ('some_table_name');

    This will work if you have one or more column value returns. Basically, a table name is multiplied by the number of lines found in the table. I hope this helps.

  • Need help with a Citadel of DIAdem data store opening.

    Hello

    I was wondering if someone can help me to connect to a Citadel of DIAdem data store. I've read all the online help and cannot operate.

    On my PC, I use DIAdem v11.1 and v6.1 Lookout installed as a plugin. I am trying to connect to a data of Citadel store 5 on a server visible in the image below, specifically the default database on HPSERVER1. The installation of MAX on HPSERVER1 tells me that there are 2 versions of LabVIEW Run-Time installed, 8.2.1 and 9.0.1 (I don't know if this is relevant).

    When I select \\hpserver1\default_database, I then set the properties as follows:

    In the Advanced section, I'm the deadline set to 90 seconds. When I hit OK, then I get the following message, which then brings back me to the previous screen.

    Any help is very appreciated,

    David.

    Hi David,

    6.2 Lookout CLIENT is for people who do not have installed Lookout but still want to connect to a database of Citadel with DIAdem.  This works for databases Citadel created by Lookout as long as those created by LabVIEW DCS, is said by the way.

    In your case, you have already installed Lookout, you don't need this additional client software.  There is no improvement in functionality in this interface between 6.1 and 6.2, so you do not miss anything, and youre data import is already working.

    I don't know about lookout not appearing is not in the License Manager, etc.  I'm sorry.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Construction in real time of the table and the data tracing

    Hello

    I have a project in which I am waiting for a message from the chain coming to my serial port that contains two parameters of a voltage sensor compared to the position

    I will then draw two parameters for a XY chart as they arrived at my port to build a chart that is continuously updated with all the points came to the COM port (all from the position of the reading pressure readings).

    I know that to draw the two parameters against each other that I must use the XY-graph and for this, I have to insert my data in the tables first and then give them to the chart.

    The problem is that the message of the series is not at fixed intervals (for example a message now comes, the other may be after 1 minute, then another after one half minute.. .and so on). and the chart should be updated with the points once they arrive (in addition to displaying the previous points too of course).

    I don't know where to start! can someone put me on a track for it?

    Note: I have no problem with the interpretation of the data series, at the end I will have two numeric values which I'll then draw against each other

    Thank you

    One thing that I had not noticed before on your VI is that you use the wrong function when generating data in your table.  You should use table to build.  No insertion in the table which is more intended for stuff that goes in the middle of a table.  And the way you use it, you insert in fact data at the beginning and not at the end.

    I don't know what you have tried and why you think that the circular buffer is not what you want to do.

    Take a look for a function called data queue Pt by Pt that effectively does what you want.

    I will attach a Subvi I used.   I changed it to something that I found.  I think I found somewhere in LabVIEW itself, or an example, maybe the forums, but I can't find the original source.  And I don't see in the comments of the VI. (If anyone knows, please comment.)

  • How to create a grid with the tables and Boolean values?

    As part of a larger project, I'm trying to create a Subvi, which will allow me to spend a "cursor" in a 3 x 3 matrix.

    It should be 2 Boolean inputs, one for move them down in the table and the other to move them to the right. Once reached the edge of the table, the "cursor" will start back at the beginning.

    I have a vague idea of a table to 2 dimensions with LED. Once 'down' has been selected, the corresponding light to (0,0), light (0.1). Goes the same for the button 'right '. When 'down' is pressed (0.2), the LED should turn off, and LED (0,0) must light up.

    I'm sure it has something to do with the initialization of the tables, but I can't seem to find the right way to do it.

    Any help is much appreciated. Thank you!

    Your array is always empty.  Look at the detailed help for the function page replace table subset.  He says that the function has no effect if the specified index refers to a location outside the table.

    What you see on the Panel is only a view and has nothing to do with what is in the table.

    Lynn

  • Help with Hard Drive and registry

    Hey, it kinda turns out to be a long and difficult history, but I recently had a small problem that spread to a problem much bigger (and catastrophic).

    I had a problem with freezxing on my laptop (HP Pavilion Dv5 with the 64-bit version of Vista I think). I've tried a few things m ais it froze just in case. Finally I found someone who said they ran a registry cleaning program and that did the trick. I tried and I had no more freezing. Unfortunately, I connected an external hard drive and all hell broke loose. It froze and I turned off the laptop. I have it turned on and was greeted with this message:

    STOP: c000021a {Fatal System Error}
    The Session Manager failed to create protected prefixes system process terminate
    d unexpectedly with a status of 0x000003a (0x00000000 0x00000000).
    The system has been shut down.
    

    I tried to boot in safe mode and found:

    STOP: c0000218 {Registry File Failure}
    The registry cannot load the hive (file):\SystemRoot\system32\config\SOFTWARE or its log alternative.
    It is corrupt, absent, or not writable.
    

    Then, she went and made the collection of data, and that was all. After that, I tried the boot recovery option and that never worked. I searched internet and found a few people with similar, but never the same questions. Someone, somewhere, says something about execution of system restore after having access to the menu by pressing F8 at startup. I tried. It did not work. I pressed F8 at startup upward and chose the first option. It has established a list of things to try. System Restore (and other options such as checking memory and bring up the command prompt) did not work because the C drive has been used. Large. I tried to use the disks that came with my laptop and I never once found while they were actually useful because I could never the laptop to run.

    Now, I wanted to try to use the command prompt. Never really had a chance. Now, when I start the computer I'm greeted by the inspiring message of hard drive are not.

    Sweet. Now, I'm a little stuck on what to try. I tried to reset the BIOS defaults and nada. I have no idea what it must try now and would love to help anyone.

    I would be very happy and I thank you for your time.

    It depends on how much you have to pay to get the new hard drive installed and running. Get a quote for a computer shop trust you.  So I think that if the computer has been done what you wanted to do before he went wrong.  If it was enough for you and the price of the repair is not too high (maybe less), I would. If the price is more than $ 200, I would start thinking about applying your money towards a new laptop computer, but that cheaper isn't always the best deal.  Do some research and try some mobile friends to see if it is fast enough for you and you enjoy the feeling. Stop in some stores that display laptops and taste. Laptops with dedicated video card memory will do better with the games.  If the games are starting to become important to you, consider a desktop computer instead of a laptop where you can buy a killer video card. I like the new Ivy bridge to intel for laptops so look for it.  This is the new family of Intel processors. I7 Ivy bridge is the finest, then the i5, then the i3.  You really need to sit with someone who knows computers and discuss your needs for the future and how you want to use your computer.

  • Help with conditional display and Validation

    Version 4.1.1.00.23

    Hello

    I'm having a difficult time with a conditional display and validation, I hope someone can help with.

    Requirements:

    When (Datepicker) Start Date or the end Date (Datepicker) change can display the reason for change (select list) and change Description (Textbox)
    If the page is saved without entering a reason change display an error message of validation that the reason for the change cannot be empty (NULL)

    What I tried

    Create a dynamic Action on the Start Date

    Event: Change

    Selection type: Article (s)

    Items (s): P51_START_DATE

    Condition: no

    Real Action Section:

    Action: Show

    Fire on Page load: Checked

    Display all the elements of the page on the same line: NO.

    Section of the elements concerned:

    Selection type: Article (s)

    Product (s): P51_CHANGE_REASON, P51_CHANGE_DESC

    I also created a dynamic Action with similar settings for the P51_END_DATE.

    I created a Validation for the P51_CHANGE_REASON as a function return error text:

    DECLARE
        v_start_date    work_items.start_date%TYPE;
        v_end_date      work_items.end_date%TYPE;
    BEGIN
        SELECT start_date
              ,end_date
        INTO   v_start_date
              ,v_end_date
        FROM   work_items
        WHERE  work_items_id = :P51_WORK_ITEMS_ID;
        IF ( (v_start_date != TO_DATE(:P51_START_DATE,'DD-MON-YYYY') OR v_end_date != TO_DATE(:P51_END_DATE,'DD-MON-YYYY') ) AND
              :P51_CHANGE_REASON IS NULL ) THEN
            RETURN 'Change Reason must have a value';
        END IF;
    END;
    
    
    

    The question

    I tried to create another dynamic Action to hide the P51_CHANGE_REASON and P51_CHANGE_DESC fields during the loading of the page, but when the date fields are changed and the validation is fired the P51_CHANGE_REASON and the P51_CHANGE_DESC are hidden again.

    There are two buttons to send the page: 'SAVE' will submit the page and stay on the page and 'SAVE_CHANGES' will present the page and creates a branch to the previous page (which is a relationship with the EDIT buttons to change recording).

    I can not loading the dynamic Action page for fires DO NOT when validation is triggered.

    I hope it is clear and if not what information can I provide?

    Thank you

    Joe

    Which the condition is failing and what browser? I tested it in Firefox and it works as it should. Can you confirm that?

  • Help with sum multiline and formatting «,»

    Hey guys, I need help with a question that I am struggling to solve...

    I have a multiline field in which I paste information from an excel spreadsheet. This information is in a format 1.234,56.

    I was able to have the numbers stuck on the ground in another area, by removing the ',': something like this:

    var withcoma = this.getField("Input_1").value; This is my multi-line field used to paste data from excel

    nocoma = withcoma.replace(/\,/g, ".");

    the var values = nocoma.split("\r");

    var total = 0;

    for (var i in values) total += Number(values[i]);

    this.getField("Total").value = total;


    The point is that I have to be able to change the numbers that I have to format to the format 1,234.56 1.234,56 if I choose to use a different currency than my original and also wear numbers in the field "Total" correctly updated.

    Could someone point me in the right direction?

    Thank you very much!!!

    The solution was to add another line of code to remove the periods used so that thousands separators in numbers.

  • Need help with performance tables very very huge...

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production.
    My DB has many tables and which I am interested in getting sales and product data.

    Select / * parallel 32 * / count (1))
    Select / * parallel 32 * / separate product pd, s sale prod_code
    where pd.prod_opt_cd is NULL
    and s.sales_id = pd.sales_id
    and s.creation_dts between to_date ('01-07-2012', "YYYY-MM-DD") and
    TO_DATE ('2012-07-31', "YYYY-MM-DD")

    );

    More information-
    Total of lines in the sales table - 18001217
    Total of lines in the product table - 411800392
    creation_dts don't have clue on this subject.


    I started the query in the background, but after 30 hours, I saw the error saying-
    ORA-01555: snapshot too old: rollback segment 153 with name number

    Is there another way to get over the optimized data?

    >
    Select / * parallel 32 * / count (1))
    >
    If you try to use a PARALLEL index and then use

    select /*+parallel (32) */count(1) from (
    

    See section PARALLEL to the doc of the SQL language indication
    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/sql_elements006.htm#sthref669

Maybe you are looking for