Some Random Notes On Oracle Spatial

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Some random notes on oracle spatial

Some random notes on oracle spatial d

Tabel yang menyimpan metadata tabel spasial: MDSYS.CS_SRS SRS di Oracle spasial itu beda dengan EPSG,
misal EPSG:4326, SRS di Oracle Spasial adalah 8192

OGR2OGR:

▶ Contoh transfer shp ke oracle spasial:


▶ ogr2ogr -f OCI “OCI:gis/gis@192.168.1.7/db01.server.world” -a_srs EPSG:4326 -t_srs EPSG:4326 -nln
test02 f100bgnar10000.shp

DOUBLE QUOTE is IMPORTANT in connection string, without that will gain unpredictable result
▶ ini maksa output harus EPSG:4326, dan source-nya ditransform ke EPSG:4326

Kalau source bukan EPSG:4326 otomatis di-reproject sebelum transfer?db01XDB.server.world adalah nama
serviceUntuk menambahkan nama service, di tnsnames.ora bisa ditambahkan:

DB01 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))


(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = db01.server.world) ) ) gis = (DESCRIPTION
= (ADDRESS_LIST = (ADDRESS = (COMMUNITY = TCP) (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521) )
) (CONNECT_DATA = (SID = db01)) )

▶ Belum tau gimana bisa ada nama service, tapi lihat saja pake lsnrctl status

Contoh hasil lsnrstatus:

Listener Parameter File /usr/oracle/app/product/11.2.0/dbhome_1/network/admin/listener.ora Listener Log


File /usr/oracle/app/diag/tnslsnr/localhost/listener/alert/log.xml Listening Endpoints Summary…
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521))) Services
Summary… Service “db01.server.world” has 1 instance(s). Instance “db01”, status READY, has 1 handler(s) for
this service… Service “db01XDB.server.world” has 1 instance(s). Instance “db01”, status READY, has 1
handler(s) for this service… The command completed successfully

You might also like