I am taking a few notes as I set up ArcSDE 9.2 backed by Oracle 10.0.2 ...
| Table of Contents |
|---|
Oracle Installation
Seems straight forward enough ... except
Oracle Tweaks for ArcSDE
ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor
It seems that Oracle has moved on past what ESRI supports by way of letting management application hack away and add tables. We need to go into an internal file and add a couple of lines to listener.ora
| No Format |
|---|
(SID_DESC =
(GLOBAL_DBNAME = ORCL.WORLD)
(ORACLE_HOME = C:\oracle\product\10.1.0\Db_1)
(SID_NAME = ORCL)
)
|
Basically ArcSDE needs to use this GLOBAL_DBNAME setting in order to know what database to add an SDE user to and set up its tables. GLOBAL_DBNAME is no longer used by others to the point Oracle has stopped having it around by default.
On windows the file will look something like this when you are done:
| No Format |
|---|
# listener.ora Network Configuration File: C:\oracle\product\10.1.0\Db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.1.0\Db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = ORCL.WORLD)
(ORACLE_HOME = C:\oracle\product\10.1.0\Db_1)
(SID_NAME = ORCL)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = chicken)(PORT = 1521))
)
)
)
|
After you have added these lines you need to kick the listener to notice the file:
| Panel |
|---|
C:\Documents and Settings\Administrator> lsnrctl stop LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 18-APR-2008 16:45:07 Copyright (c) 1991, 2004, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) |
| Panel |
|---|
C:\Documents and Settings\Administrator> lsnrctl start LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 18-APR-2008 16:46:29 Copyright (c) 1991, 2004, Oracle. All rights reserved. Starting tnslsnr: please wait... TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) Listening Endpoints Summary... |
| Panel |
|---|
C:\Documents and Settings\Administrator> lsnrctl reload LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 18-APR-2008 16:47:33 Copyright (c) 1991, 2004, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) |