Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 15 Oracle Analytics Lounge
- 208 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 76 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Where is the OBIEE 12c Admin Tool expecting to find TNSNAMES.ORA?

I was having trouble getting my OBIEE 12c repository to connect to my Oracle database via a TNS name. I had recently deinstalled the Admintool, and upon reinstallation it wasn't able to use a TNS entry to connect to the database in a connection pool. I put on my detective hat and figured out where the tool was expecting to find TNSNAMES.ORA. I thought I should share that process and save others the trouble These steps apply specifically to Windows.
The file I run to open the Admin tool is located (in my system) at C:\obiee_12c_admin\domains\bi\bitools\bin\admintool.cmd
That file contains this single line: call %~dp0\..\..\..\..\bi\bitools\bin\admintool.cmd
Each of the 4 occurrences of ..\ goes up the path one level from the location of the file in which this command is running. So, that means that I'm going up the chain four levels, knocking off bin, bitools, bi, and domains, coming to rest on c:\obiee_12c_admin.
Then the command adds \bi\bitools\bin. So, at this point, the command will run c:\obiee_12c_admin\bi\bitools\bin\admintool.cmd
Let's examine that command file. It contains these important lines:
set CLIENT_HOME=%~dp0\..\.. which means to go up two levels from the current file, which would leave us at c:\obiee_12c_admin\bi
set DOMAIN_HOME=%CLIENT_HOME%\..\domains\bi which strips one level (bi) from client_home, then adds \domains\bi. So DOMAIN_HOME is c:\obiee_12c_admin\domains\bi
CALL %CLIENT_HOME%\bifoundation\server\bin\nqinit.cmd %* which translates to c:\obiee_12c_admin\bi\bifoundation\server\bin\nqinit.cmd
That file contains these key lines:
set ORACLE_BI_ENVIRONMENT_DIR=%DOMAIN_HOME%\config\fmwconfig\bienv which translates to c:\obiee_12c_admin\domains\bi\config\fmwconfig\bienv
set TNS_ADMIN=%ORACLE_BI_ENVIRONMENT_DIR%\core which translates to c:\obiee_12c_admin\domains\bi\config\fmwconfig\bienv\core
So, it appears that the OBIEE Admin Tool is expecting to find TNSNAMES.ORA in c:\obiee_12c_admin\domains\bi\config\fmwconfig\bienv\core
Checking that directory, I see that the only file there is bi-environment.xml.
After I pasted the contents of my regular ..\network\admin directory (which contains the .ora files for my database) into c:\obiee_12c_admin\domains\bi\config\fmwconfig\bienv\core, the Admin Tool connected correctly.
Comments
-
Good time!
In your case, tnsnames.ora should be located here:
C:\obiee_12c_admin\network\Admin\tnsnames.ora
0 -
What you did is correct, the tnsnames.ora file does not exist by default. See OBIEE 12c: ORA-12154 Error While Importing Metadata From an Oracle Database (Doc ID 2119009.1).
0 -
Hello Mark,
If pasting TNSNames.ora doesnt work for you , while importing keep the entire TNSEntry in the datasource name.
Important : The code after =
TEST=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=10.0.0.1)
(PORT=1521)
)
(CONNECT_DATA=
(SERVER=dedicated)
(SERVICE_NAME=TESTDB)
)
)
0 -
Absolutely right, Asim. That method had always been quite reliable. Thanks for the addition to the discussion.
0