Saturday, June 5, 2010

Configure Oracle Instantclient for Primavera P6 Version 7

Primavera P6 Version 7 comes with Oracle 10g Express Edition, and when you install Primavera P6.7 using Standalone option, Oracle 10g Express is automatically installed. But I found a lot of people have problem getting Oracle working with Primavera P6. One of problem is the configuration of Oracle Instantclient. Here is my experience of configuring Oracle Instantclient.

First, you need to download a 32 bit Oracle instantclient even you are installing Primavera in a 64 bit operating system like Windows 7 or Windows Server 2008 R2. The url is http://www.oracle.com/technology/software/tech/oci/instantclient/index.html. After download, unzip this file in folder in your local drive, i.e. c:\instantclient_10.2, then add this folder to the PATH system environment variable from the advanced settings in the Properties of My Computer.
You don't need to configure the tnsnames.ora file, but in case, your Oracle Connection String must use Oracle Easy Connection format like //mymachine.mydomain:port/XE or mymachine.mydomain:port/XE, for example, enter connection string as 192.168.0.10:1521/XE.

If you opt to use tnsnames.ora, the content of this file should look like below:

XE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.10)(PORT = 1521))
)
(CONNECT_DATA =
(SID = XE)
(SERVER = DEDICATED)
)
)


Then, add TNS_ADMIN to your Windows environment variables, the value of TNS_ADMIN is the path to your Oracle Instantclient, i.e. c:\instantclient_10.2, finally restart your Windows. After that, when Primavera prompts for the oracle Connection String, just enter XE. If you don't configure oracle Instantclient properly, the typical error you got is this one:

Bad public user name or password. database server error: ORA-12154: TNS:could not resolve the connect identifier specified.

For more information about Instantclient ,please check http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ape.htm.

4 comments:


  1. Very nice posting. Your article us quite informative. Thanks for the same. Our service also helps you to market your products with various marketing strategies, right from emails to social media. Whether you seek to increase ROI or drive higher efficiencies at lower costs, Pegasi Media Group is your committed partner will provide b2bleads.
    Oracle Primavera Users


    ReplyDelete
  2. Great Post. I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. Thanks for sharing this useful post with us. Keep up the great work here!
    Primavera P6 Tutorial

    ReplyDelete
  3. For me the reason was, we had installed the Primavera in Program Files (x86) directory, so we were getting this error message. Once we uninstalled and installed in C:\Primavera\ then the problem got resolved. P.S: we were installing on Windows 10 64 bit machine.

    ReplyDelete