Opened 15 years ago

Closed 5 years ago

#3131 closed defect (wontfix)

ogr2ogr can not support the -append mode when import the normal dbf file to oracle

Reported by: tsingdong Owned by: ilucena
Priority: normal Milestone: closed_because_of_github_migration
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords: OCI
Cc: warmerdam

Description

I use the shell:ogr2ogr -append -f OCI OCI:user/password@service C:\placename.dbf to import the placename dbf table into the Oracle,the first time it was success.but when i tried to import the other placename.dbf table of other data source.An error occured the system raise a ora-00955 exception. The org2ogr not support -append mode when import normal dbf file,any body can tell me?

tks!

Attachments (2)

ogr2ogr error.JPG (60.2 KB ) - added by tsingdong 15 years ago.
ogr2ogr error when load dbf with -append mode
ogrinfo.JPG (36.0 KB ) - added by tsingdong 15 years ago.
the ogrinfo result picture.

Download all attachments as: .zip

Change History (8)

comment:1 by warmerdam, 15 years ago

Component: UtilitiesOGR_SF
Keywords: OCI added

Can you include the exact and complete error message produced by ogr2ogr?

Have you tried the -update switch to ogr2ogr indicating that an existing database should be opened instead of trying to create a new one?

by tsingdong, 15 years ago

Attachment: ogr2ogr error.JPG added

ogr2ogr error when load dbf with -append mode

in reply to:  1 comment:2 by tsingdong, 15 years ago

Replying to warmerdam:

Can you include the exact and complete error message produced by ogr2ogr?

Have you tried the -update switch to ogr2ogr indicating that an existing database should be opened instead of trying to create a new one?

I add a attachment file with the picture with the error message.

comment:3 by warmerdam, 15 years ago

Status: newassigned

Reviewing the code, it appears likely that the PLACENAME table is not being treated as a layer when OGR opens the oracle database. In this situation an attempt will be made to create the table however the error messages indicates it already exists.

Does an ogrinfo on OCI:tsingdong/tsingdong@XE report the placename layer? If not, I wonder why not.

by tsingdong, 15 years ago

Attachment: ogrinfo.JPG added

the ogrinfo result picture.

comment:4 by tsingdong, 15 years ago

I added the ogrinfo result picture.

you're right the placename is not a ogr layer by the ogr2ogr load th e dbf file.It's the right result? it would changed in the feature or not?

tks!

comment:5 by warmerdam, 14 years ago

Cc: warmerdam added
Milestone: 1.7.0
Owner: changed from warmerdam to ilucena
Status: assignednew

comment:6 by Even Rouault, 5 years ago

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: newclosed

This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.

Note: See TracTickets for help on using tickets.