![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, First off, I'm new to the Oracle world so please be gentle on me. Now down to the problem at hand. I support a CAD application that has an Oracle backend. I've been on site at my clients offices and got a dump of data, via TOAD, to bring back to my office. This has given me a file containing a large number of insert statements of the format: Insert into tgds.trip_bodies (ARRIVAL_TIME, ADJUSTED_ARRIVAL_TIME, ADJUSTED_DEPARTURE_TIME, ADJUSTED_RECOVERY_TIME, MASTER_NODE, CURRENT_NODE, DEPARTURE_TIME, TSN_REF, NODE_MODE, ARRIVAL_SYMBOL, DEPARTURE_SYMBOL, RECOVERY_TIME, NODE_NAME, TME_ID, THR_ID) Values (10419, NULL, NULL, NULL, 107868, 108381, 10419, 102745, ' ', ' ', ' ', 0, 'CMPG', 1218, 2550470, ); My problem is the 9th entry, NODE_MODE which comes across as a square box between quotes. In the db schema, this is defined as "char(1)" and for some reason, the data in the clients NODE_MODE column is made up of the NON-printable values, the ones below 32, from the ASCII table, hence the box within quotes. If I look at one of these insert statements in a programmers editor, I get values such as '^C', '^K', all values that give the square box. I have now loaded this data, using the insert statements, into Oracle via TOAD. My problem is that the data comes across as a dot ie a period. If I re-export this data, instead of the '^C' & '^K', I now get '.'. Is there a way that I can import this data into my instance of Oracle and get these values to come across correctly? Any thoughts on this are greatly appreciated. Andrew Lowe |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
When you say 'Oracle Back End' .... does the application use Oracle's Spatial option or Oracle Locator functionality? (Locator is a subset of Spatial used to store adn retrieve GIS coordinate maps.) Or does it use a customized method of storing the data. (IOW, what is the data type of the column that's giving the problem - try givng us a 'DESCRIBE' on the table.) |
|
Versions of Oracle, and version of operating system, would be useful. |
|
Finally, you extracted the data - seemingly using Toad. You apparently did not use Oracle's export/import tools. Any specific reason? |
#5
| |||
| |||
|
|
As I said I'm new to the Oracle world. I hav TOAD on both the |
|
clients machine and my own and it makes life a lot easier for me, eg SQL Plus Vs TOAD. When I was at my clients office, my concern was that their setup of Oracle 9i running on Solaris, ie 64 bit on a SPARC CPU, would cause binary problems when trying to load data into my setup, 9i on Win2000, ie 32bit on Intel, hence the "text way". |
#6
| |||
| |||
|
|
Andrew Lowe wrote: As I said I'm new to the Oracle world. I hav TOAD on both the No worries. There are reasons for using exp and there may be some for avoiding it. Wanted to verify first. clients machine and my own and it makes life a lot easier for me, eg SQL Plus Vs TOAD. When I was at my clients office, my concern was that their setup of Oracle 9i running on Solaris, ie 64 bit on a SPARC CPU, would cause binary problems when trying to load data into my setup, 9i on Win2000, ie 32bit on Intel, hence the "text way". Assuming you want ALL the table data, Oracle provides a pair of utilities to export data from a database and import that same data. There are preconditions (version, char set), but in general these utilities will help you ensure you get the data across properly regardless of OS. You want to run exp for a table using the table owner on the solaris box. Then imp on windows. (Command line utilities) Both commands respond to parameter 'help=Y' to provide syntax - should be enough to help. Both are very flexible and are fully described in the Utilities manual at http://tahiti.oracle.com HTH /Hans |
![]() |
| Thread Tools | |
| Display Modes | |
| |