Coding tables and external character

Oracle 11.2.3.0 STD. Ed. ONE, 64-bit

Oracle Linux 64-bit 5.6

To quote Lloyd Bridges during his move to plane, "I chose a bad day to quit sniffing glue."

Apart from the translations of the ascii-ebcdic in my IBM mainframe days, I never had to deal with problems of encoding character before, so I'm not even sure what I'm looking for here.  Question by one of my best developers.

Creating an external table to read a textfile from outside of the organization.  First sign of trouble was when the developer tried to select in the table.

using SQL Naviagator (no and Oracle product) the result looks like this:

Using SQL Developer, the result looks like this:


Looking at the raw in hexadecimal mode UltraEdit file, I see that the first two characters of the file are x'FF ' x'FE ', and each character normal, printable is followed by x '00'.  If this first row first column above (from SQL Developer), with "E m a i l A d d r e s s", in the file itself is as follows (hexagonal channels)

FF FE 45 00 6 d 00 61 00 69 00 20 00 41 00 6 c    (etc, etc)

Read "Handling character encoding different patterns" at https://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_control_file.htm#SUTIL1079, but do not make sense.

Guess I don't have enough of a frame of reference to start there.

The rep "implementation" of the company that provides the file tells us that it is "UTF-16 Little Endian"

All entries, details, comments, solutions welcome.

Hi Ed,

The first 2 bytes, what you see is what is called the "byte order mark" or BOM (which indicates the Unicode file "endianness").

Given the 'E' is hexadecimal code 0 x 45 and Unicode 16-bit little endian format is used in the file, the 2 bytes 'E' (0 x 0045) becomes 0 x 45 0x00 in little endian (or just 45 00).

UPDATE1:

1 removed the previous comment (s) on inclusion BIGENDIAN and DATA IS... Options-ENDIAN (see doc link below if you want to include these for your environment).

2. including 2 items in the specification of the external table enabled it works in my test environment:

-Characters of the STRING SIZES ARE in

-CHARACTERSET 'UTF16.

3 note: no changes of parameters SQL Developer was necessary. This has also worked as you want plain old SQL * more.

Reference documentation:

https://docs.Oracle.com/CD/E11882_01/server.112/e22490/et_params.htm#SUTIL012

Excerpt from the specifications, with what I used to test:

...
ORGANIZATION EXTERNAL (
  TYPE ORACLE_LOADER
  DEFAULT DIRECTORY ext_data_dir
  ACCESS PARAMETERS (
    RECORDS DELIMITED BY NEWLINE
    NOLOGFILE
    STRING SIZES ARE IN characters
    CHARACTERSET 'UTF16'
    FIELDS TERMINATED BY ','
    MISSING FIELD VALUES ARE NULL
    (
      [ snip ]
    )
  )
  LOCATION ([ snip ])
...

I used Notepad on a Windows machine to record my simple test file as Unicode to the BOM is present and characters are Little - Endian UTF16 (i.e. the file-> save as-> Encoding: Unicode).

Thank you

Mark

Tags: Database

Similar Questions

  • Conversion tables and the entries in the table

    I'm working on a conversion table for our former products of FM unstructured to DITA. I understand the basic concepts, but I'm having a problem with the table cells.

    I have P:CellBody in my conversion table, in the first row, mapped at the entrance with a cellbody qualifier.

    I also TC mapped at the entrance.

    The same applies to P:CellHeading, and Th.

    Therefore, my text is wrapped in two input elements. The context tab to show the item says:

    entry

    entry

    line

    TBODY

    tgroup

    Table

    body

    NoName

    NoName

    I'm sure it should be the same as above with the input only one element (and of course with the fixed NoNames which I think I know how to do; I just have not had here yet).

    How to avoid get my cells wrapped in two input elements?

    Thanks in advance,

    Marsha

    Marsha,

    I don't understand what you're trying to do, or what is exactly in your conversion table. Be aware, however, that FrameMaker will always create elements for the basic elements that occur in your tables. The table of conversion that you give little control of how these items will be marked, but not question whether elements will exist.

    If your conversion table contains lines such as:

    P:CellBody entry cellbody
    TC: entry

    You will get the nested input elements. External is the cell of the table itself and inside is the paragraph. FrameMaker does not have a valid document to use the tag of the element itself to a cell and a container, so aside from the results is not what you wanted, they are not correct in FrameMaker.

    If your table cells contain simple paragraphs and you don't want the elements for cells and paragraphs, your conversion table didn't even need to mention paragraph CellBody and CellHeading tags. Indeed, if your table formats using CellBody as paragraph format for cells in the body of a table and CellHeading as the paragraph format for the cells in the table, your ESD header didn't even apply the paragraph formats.

    Another alternative is to include a paragraph tag in a table row of conversion for a table cell by combining TC: and P: to match table cells containing such paragraphs. For example:

    TC: P:CellBody entry

    creates items named cell entry of table cells containing paragraphs tag CellBody. The paragraph in such a cell is not encapsulated in an extra element.

    One final note is that TH: in a conversion table refers to the position of the entire table. his children are header lines. The analogue of table of TH body: to:, not TC.:

    -Lynne

  • The most effective way to insert form data into multiple tables and w/autonum

    Hi all, this is my first post here. I am new to APEX and PL/SQL. I have ColdFusion and SQL, and I'm used to perform CRUD operations in my CF Tags application files. From what I've read so far, so if this is accurate, it seems that it is more efficient to perform most of the CRUD operations on the database side, I hope that for advice on the best way to accomplish what I ask - even if I'm trying to do is better off in my new APEX application I am open to this information as well.

    I have a form whose data must reside in two tables. Table A is a one-to-one relationship table and stores General information for each request. Table B is a table of one-to-many observations and should store unique records for each type of comment entered on the form, of which there are 3 comment fields on the form, I'd end up with 3 disks in table B for 1 in table A. I am generating an AutoNumber for table A with a sequence and relaxation. I want to do is take the AutoNumber I just created and use it for insertion in the Table B each insertion I have to do. This is where I am stuck.

    I would like to comment on 1) where I should put all these operations and 2) how best to go about what I want to do coding. In ColdFusion, it is as simple as inserting the record in Table A, immediately asking to table A more recent recording and storing (auto) ID in a variable and then using this var for any other table insertions, I had to do. I know it must be at least a little easier in the Oracle world, I just need a nudge in the right direction. Thank you!

    OraclePledge,

    You're pretty close to not having worked with oracle a lot.

    This section is backwards:

    insert into sch.tbl_main(cust_lname,cust_fname,acct_num)
    values(:P3_CUST_LNAME,:P3_CUST_FNAME,:P3_ACCT_NUM);
    
    select "SCH"."TBL_MAIN_SEQ".currval
          into
          v_ID
          from dual;
    

    Even if it will work if you only have a single user, it's a potential bug with two or more users. First select the key (if it's first use nextval rather than currval) can use it in the insert statement.

    See you soon,.
    Janet Tyson

    Published by: Tyson Janet on June 23, 2011 10:48

  • Inner nested table and cannot be exported

    Hello

    My environment:


    + Linux Red Hat 5.4 1 / 32 - Bit + company Oracle 10.2.0.4
    + Linux Red Hat 5.4 1 / 64 - Bit + company Oracle 11.2.0.2
    + Taste patterns scott, hr, oe, bi, pm...

    expdp system / * parfile = table.par

    where table.par contains:
    DIRECTORY=EXPDMP
    DUMPFILE=table.dmp
    LOGFILE=table.log
    TABLES=OE.ACTION_TABLE,OE.LINEITEM_TABLE
    I have the following errors:
    Export: Release 10.2.0.4.0 - Production on Monday, 16 May, 2011 15:46:01
    
    Copyright (c) 2003, 2007, Oracle.  All rights reserved.
    
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Starting "SYSTEM"."SYS_EXPORT_TABLE_01":  system/******** parfile=table.par
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    ORA-39165: Schema OE was not found.
    ORA-39166: Object LINEITEM_TABLE was not found.
    ORA-39166: Object ACTION_TABLE was not found.
    ORA-31655: no data or metadata objects selected for job
    Job "SYSTEM"."SYS_EXPORT_TABLE_01" completed with 4 error(s) at 15:46:15
    A test with the export of old, where him parfile:
    FILE=table.dmp
    LOG=table.log
    TABLES=OE.ACTION_TABLE,OE.LINEITEM_TABLE
    has shown the following errors:
    /home/oracle/EXPORT>cat table_cmd
    exp system/STRM  parfile=table.par
    /home/oracle/EXPORT>cat table.par
    FILE=table.dmp
    LOG=table.log
    TABLES=OE.ACTION_TABLE,OE.LINEITEM_TABLE
    /home/oracle/EXPORT>exp system/STRM  parfile=table.par
    
    Export: Release 10.2.0.4.0 - Production on Mon May 16 15:55:51 2011
    
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    
    
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    
    About to export specified tables via Conventional Path ...
    Current user changed to OE
    EXP-00064: ACTION_TABLE is an inner nested table and cannot be exported.
    EXP-00064: LINEITEM_TABLE is an inner nested table and cannot be exported.
    Export terminated successfully with warnings.
    /home/oracle/EXPORT>
    Anyone know the solution?

    Thanks for any help!

    concerning

    hqt200475

    Hello

    As far as I KNOW, it is not possible with parent segments

    Oracle error: EXP-00064: %s is an inner nested table and cannot be exported.
    Cause: An attempt was made to export an inner nested table without its parent table.
    Action: Export the parent of the nested table inside.

    -Pavan Kumar N

  • Portege M800 and external monitor Dynadock question

    I have a M800 connected to a U Dynadock docking station.
    I have problems when I try and put my external monitor as the primary device and have the cell phone as the extension to monitor.

    I am running Windows XP.

    Are the only options it will allow: Clone, Extended (laptop is main and external is the extended option)

    If I use the WIndows graphic option it does not put the external monitor as the main display (I check this option and click on apply and it remains unchecked)

    If someone could help that would be great.
    Otherwise, I would recommend is not to use the dynadock

    Sorry mate but I still don t understand what you are talking about what problem do you have?

    Is the Dynadock video drivers give you the ability to view a total of three screens.
    -L' screen of the laptop.
    -external monitor connected to the video port on the laptop (if available)
    -ewxternal monitor connected to the Dynadock

    In addition, you can use mirror Mode and Extended Mode.

    Mirror Mode creates an identical view between your computer screen and the external monitor
    Extended mode extended Mode lets you split your display on multiple monitors.

    These are the features that you can use with Dynadock

  • Satellite A215-S4747 (internal and external) microphone does not work

    Hello

    I write about my wife by Satellite A215-S4747 running Windows XP.
    A few months ago as the built-in microphone and external microphone has stopped working.

    This made me think it was a driver problem, although no issue in
    Control Panel > sounds and Audio devices > equipment for all drivers.

    I went through the Troubleshooting Wizard, but that did not help.
    I went and downloaded drivers RealTek HD Audio (R2.67), but that didn't fix it.

    Any help is very appreciated.

    Thank you

    Peter

    I want to emphasize that this machine is about 6 years old, making the possibility of some parts break most likely...

    Hello

    Sound works. Right? Well well, in that case I n t think that it is an audio driver problem.

    First of all, I think you should check some basic settings.
    (1) mic device.
    Go to the control panel-> sounds and Audio-> Audio-> sound recording devices
    Here you check if device right microphone has been selected

    (2) mic volume
    Go to the control panel-> sounds and Audio devices-> Audio-> audio-> Volume
    Here you check if the volume is at max level
    Additional button Advanced should be available at the bottom of the mic volume control click that it and check if the mic push in checked.

    Have you installed some tools or software which may affect (disabled) the microphone?

  • Best practices for storage and backups on internal and external drives

    Hello

    I have a Mac laptop and I would like your advice on how to organize the storage of files on internal and external drives and how optimizes it the backup plan.

    From now on, my organization of file storage is:

    I keep my most important files on the internal disk of SSD encrypted and less critical files on an encrypted external drive (format ExFAT). This external hard drive was errors, so I bought a new Laetitia 2 Tb drive that I formatted in Mac OS journaled with encryption instead of ExFAT, to replace.

    For backups, I do not use Time Machine, but I use an application that synchronizes files between two disks. By using this application, I first sync the essential document on the SSD files internal to the external drive, and then I synchronize all the external drive to another external drive.

    My question is, if I keep this Organization of file storage or I should, for example just move all my files, critical and non-critical for the internal SSD (I could make enough room for that) and then backup up the whole Mac with Time Machine? Or there is a better way to organize files in this scenario?

    The second question is, if it is better to keep the Organization as it split storage (internal, less critical on external criticism) is what would be the best way to back up everything?

    Thanks in advance for all contributions.

    First of all, to the ExFAT is the problem, I suggest that the reader will just physically hurt.  ExFAT is perfectly acceptable as a format where Mac and PC can read/write.  You may have reacted a little leaving ExFAT for HFS, but you have made your choice and adapts to it.

    Here is how I operate my backups:

    I use CCC (CarbonCopyClone, $40, bombich.com).  It copies the boot sectors, drive, mapping, recovery Partition (these three are 'invisible' to DiskUtility for most) as well as system partitions and data records 'other'.  These other disks may be internal for clone-to-test-new-OSX in multi-disc systems or external for backup purposes.  The beauty is that you can start an external clone in a system crash, then CCC will be re - copy the active external clone on a new/fixed internal drive.

    Encryption isn't something I know, but... If only the content of the system partition and data is encrypted, it * could * be OK for clone-back to partition-as-encrypted partitions.  If you clone internal external the external partition is active and copy the 'encrypted plan', while small adjustments are made so that the race could be bad.  Copy of the files on my partitions unencrypted change interrupt because they are individual files.

    As an alternative, you could have a system drive that does CCC charge, let the clone encrypted and encrypted internal idle and just copy the entire map with the 'third system' active.

  • Mac Pro, Flash Storage, Dropbox, and external storage Solutions

    I am considering a Mac Pro to a computer in the enterprise. I hope someone can give an overview and experience with the dilemma of using a computer with a small amount of storage on board, dropbox and external storage devices.

    Background:

    Mac Pro storage on board - The Mac Pro has limited onboard storage. It comes with a 256 k flash memory and is apparently expandable to 512 or 1 TB. But, I can not even know where to buy the storage upgrade. For some reason, it seems even to be available for purchase on Apple's site. I can't understand how much it costs or where to buy it. I found a link showing how to install it, but that's all.

    Dropbox - Dropbox is an important part of the company, or at least my business. The tricky thing is that Dropbox doesn't seem to work very well if this does not work on an operating system main hard drive. I tried once on a Mac Mini Server, and it does not work well. I read on the Dropbox site that it doesn't work so well. The small amount of storage on board available for the Mac Pro means that it is necessary to use an external drive, which is fine with me, with the exception of the question of Dropbox. Is anyone here from an experience with this problem.

    External storage - the question here is as stated above. How to get an external drive on a Mac Pro, the operating system is not installed on, to work properly. I know that most people could read this and suggest to go to the website of Dropbox support for more information. I was able to do that and have nothing. Looking for Mac people who could potentially experience.

    In short, how the hell you upgrade Mac Pro flash storage... where do you get, and how much it costs?  And second, anyone experience using Dropbox on a Mac Pro, where the Dropbox folder is not located on the operating system drive.

    Thanks for any help that can be provided.

    -Apple does not sell to replace internal storage.

    -You can often find storage on eBay and other places. However, isn't that all in storage for some MacBook Pro model will work in the Mac Pro is much slower. One way to tell is that the MacBook you do not have a heatsink on them while the Mac Pro.

    -You can buy external storage Thunderbolt. To access only a disc both an external case USB 3/disc is about as fast as Thunderbolt. Can get pregnant using the portable 2 1/2 standard SSD

    -I did not all the posts here for the use of DB on an external drive.

  • I'm reading the data (speed rate and flow) of a table and it plot in a graph.

    I'm reading the data (speed rate and flow) of a table and it plot in a graph. I need to draw two values of l/min (speed) to the same speed. How can I do using a loop for?

    There is no need actually to use a loop FOR this. And using a graphic waveform isn't the type of field for this, for a waveform you a (Start), the dT T0 (greatness not) and table D (Data), this isn't what you want unless you know precisely the measure will take place according to an orderly disposal, you'd want a xy chart so that you can trace the measures where they occur in the axes X and Y of preference.

  • Problem: Build a VI to display a string in the table of the lights. Each letter must be posted in a separate table and letters must move from one table to the other in the direction from left to right.

    Hi all

    Problem: Build a VI to display a string in the table of the lights. Each letter must be posted in a separate table and letters must move from one table to the other in the direction from left to right.

    I did program mentioned above but it does not work. Can you tell me what is the problem?

    There is no error is indicated in the program. If someone knows about it please try to find solutions and help me out of this problem.

    I have attached my program with this message.

    Thank you in advance!

    (1) FOR loops are your friend here.  You can make a slight restructuring using loops, and then you will have less mess to deal with, the inner loop through tunnels of autoindexing to make it even simpler.

    (2) I would only treat the numeric values of the characters.  So go terminal of control of the chain, the capital letters and byte array to before the outer loop.  You can use a size of Board over there to tell how many times the outer loop to iterate.

    (3) the Index table is extensible.  So you only need over the index of the first, and it will increment itself, as it develops.

    (4) you need to finish the lookup table (table 3D)

  • Can I enter both a table and a constant of double precision in the VI form?

    I would like to calculate a new 1 d array using the formula VI. LabVIEW 'smart enough' to enter a 1 d table and a double precision constant in the VI form and leave a 1 d table receives basic commands?

    For example, can I enter [1 2 3] table and the constant [2] and say "table * constant-1" in the VI form and get an output of [1-3-5] or do I have to make a loop for or something?

    The Express VI formula seems that it can have up to 8 inputs.

    Twolfe, the best way to find an answer to this type of question is to try it.

    I didn't know this (because I have no reason to use that express VI), but you can wire a table to it.  He treats like any other LabVIEW operation on arrays.

    But if you were to make a loop, then you should already be avoiding Express VI and start making actual emissions.

  • How to write a table and a scalar value in file?

    I would like to write my data in a file but cannot address the problem. In the file I would write are values of x and y of my points of data in two columns, however, the data is in a table and the data of x consists of 3 pieces of information: an initial x, x incremented value and the number of points in my sample of data. How would I go about this?

    The number of points is redundant, because it will be the same as the 'other' in the table.

    Here's what I usually do:

  • issue with tables and clusters

    Hello

    Another issue with the tables and clusters. I have three engines thatI move on XYZ and then measure something. I need to draw on the 3D, the result of the measurement. How to draw real XYZ and not the index of the data table positions? (I can't actully how to build the matrices 2D forX, Y and Z). In the figures, I give an example of what I need.

    Concerning

    You have to break the data out of the cluster and to present them to the graph 3d to a separate bays for X, Y, Z and W where 'W' is your values measured at the locations described by X, Y, Z.

    This thread shows how trace readings in space 3. The following image shows the data that the original author wanted to draw.

    Have fun

    Ben

  • Number of points and the number of plots for table and graph

    Hi guys,.

    Can someone explain to me why I get when I run the number Vi 1 2 plots for each table and graph with 6 points, but when I run vi 2 I get 4 locations with 1 point each run assuming that the same logic applies to two screws

    Thank you.

    When wiring of the paintings in the graphics, it is assumed that each line are several points of land.

    You must convert the 2D table or right-click on the graphic and select "convert table.

  • How can I read items in four tables and store them in variables?

    Greetings,

    I have 4 tables which I read to control an autonomous robot vehicle as instructions.

    I must be able to read the first elements of each table and store in separate variables 4 (direction, speed, angle, distance). Wait until the first statement has been executed. Then I move on to the second elements of each array. I'll repeat this until I went through all the elements. I am struggling to figure out how to do this?

    Please note:

    -The number of items in the tables is always the same, although the number of items varies as can be less instructions or more.

    For example, a full trial takes 1st element of table 1, table 2, table 3 and table 4 and it builds something like: forward, 10, 20, to the left. This will then be the robot moving forward at a speed of 10 over a distance of 20 and then turn left. Once this done then it contains the elements 2 and so on.

    Please find attached my VI that reads a text file and creates 4 berries.

    Thank you.

    stanm13 wrote: Unfortunately, I don't think you understood my question.

    Then, I would say a) you don't understand the answer or b) you explain well enough.

    To make each element of an array, using a loop FOR with autoindexing entered is the way to go.

Maybe you are looking for