Skip to main content

Author: CPM Solutions

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

EDIT: Oracle has addressed this issue in a previously released service pack.

A user has also commented on an easier fix below.

“When installing the standalone version of Primavera 6 v7 on Windows 64-bit OS, you can change the default installation directories to a path that does not include “program files (x86)” in it.  The brackets around x86 are the problem with the 10g XE install.  Just rename the path to “C:\Primavera” for the install and “C:\Primavera\Primavera Common” for the common files.  It will work perfect after that!  No need for 11g or instant client or modification of the tnsname.ora file.

Regards,

Clayton Richards

The fact: you installed Primavera P6 V7.0 in a standalone machine with Windows 7 64 bit operating system, and you are configuring the Oracle database connection for Primavera, then you got the error below:

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

To fix this problem, you need to do the things below:

1. Check if Oracle database server is installed, and if it’s installed , you should see over 6 files in C:\oraclexe\oradata\XE.

2. Install Oracle InstantClient 10.2 (32 bit only) or later in your system. and make sure  the tnsname.ora file in the folder in which Oracle InstanceClient is installed.

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

Note: you may need to change 127.0.0.1 to your actual IP if Primavea Power Client is install in a different machine, and change port 1521 to the one is used.

3. Make sure you are able to connect to Oracle DB using SQLplus, and here are the steps:

– Go to Windows Start > All Programs >Oracle Database 10g Express Edition, and select Run SQL Command Line.

– When you see the “SQL>” prompt, type the SQL statements below:

SQL> connect privuser/privuser@XE
Connected.
SQL> select user_name from users;
USER_NAME
——————————–
admin

1 rows selected.

SQL>
If you see the output above when you enter the SQL statement, you should have no problem connecting the Oracle from Primavera. Otherwise, Primavera database is not created in Oracle, and you need to run dbsetup.bat to create Oracle databases for Primavera.

Q&A: “How can I accommodate resources working different hours per day on the same activity?

The Primavera P6 Project Manager software uses the Admin setting for hours/day, hours/week, hours/month, hours/year to convert all units and duration type fields from the internally stored hours to the user’s display format preference of hours, days, weeks, months, or years. Internally-stored hours are always stored as hours in the database.  In most cases, the Project Manager does not have a calendar to convert between these display formats, i.e. when there are multiple resources on an activity, or when Project Manager summarizes data at any level above resource assignments. It is important to use a consistent conversion factor between these display formats. To accommodate resources working various hours per day, you can setup assignments similar to the following example.  Global Time Period is set to 8 hours per day.

  • Set the Activity Type to Resource Dependent.
  • Set the Activity Duration Type to Fixed Duration and UPT.
  • Assign standard calendar (i.e. 5 Day 8 Hour) to the activity.
  • Assign different resource calendars (i.e., 5 Day 6 Hours, or 5 Day 7 Hours, etc.) to each resource. The Units/Time for each resource should be 100% (or 8 h/d)
  • During the planning, set the activity duration (NOT the Resource Assignment Duration) to the number of days you want and the assignments’ duration and units will be calculated correctly based on each individual resource calendar.

In this example, the activity has “5 day 8 hour” calendar, one resource has “5 day 6 hour” calendar, another resource has “5 day 7 hour” calendar and the last resource has “5 day 8 hour” calendar. When setting the activity duration to 5 days, each assignment’s duration and units are computed correctly according the each resource’s calendar.

Q&A: What are the Original Lag and Remaining Lag for a Resource in P6?

The Original and Remaining lag fields are manually entered when it is known that a resource will not be available or is not needed when the activity starts. By typing in a lag, you delay the start of the resource by that amount of lag.

Original Lag is what was typed in and is used when there is no progress on the activity.

Remaining Lag is the lag that is leftover, after the activity has started.  Remaining lag is automatically reduced once the activity is started and the Data Date is moved forward with Statusing.

Q&A: “Why doesn’t the [BL1 Start] column data match the [Start] column data when the Baseline is set to Current Project?”

When the Baseline is set to “Current Project”, you might notice that activities with actual dates are not getting the right baseline.

Here is the solution:=
1. Open Project Management Application, Click [Admin] menu, then select [Admin prreferences…].

2. Click the [Earned Value] tab on the left side.  Notice the [Earned value calculation] section at the bottom. Select [At Completion values with current dates] in the dropbox, and click [Close] to return.

3. Recreate or update your baselines again using [Maintain Baselines] function, you will see both [Start] and [BL 1 Start] will now have the same value.

Q&A: “I have an event code error when updating baselines in P6.0. Can you help?”

Your problem: Can you please help us to resolve this issue. I have attached the print screen of the error we receive whenever we try to update baseline.

(See attached figure below: Error Message – Event Code D8E0794D )update_baselines_error

My Solution:

1. Open “My Computer” from Windows Start, open [C:\Program Files\Common Files\Primavera Common\Java] folder

2. Run admin.cmd, when it asks for the username and password, enter privuser as username, and type privuser as password. If everything goes well, you will see the screen below:

plugins

3. Right click “INTERNAL_PLUHINS”, and select delete.

4. Finally, click Save Changes, and close the window.

5. Run the Update baselines again, and done!

Q&A: “Can I import a P6.2 .xer file into P6.0?”

The answer is yes, here is the trick:

  1. Using Windows File Explorer, right click your P6.2 .xer file.  Select “Open With” from the menu, and select “Notepad” to open the file in the Notepad editor.
  2. After you open the .xer file Notepad, browse the file until see the text “ERMHDR 6.2.0 “.  Change “6.2.0” to “6.0.0”, save the file and exit notepad.
  3. Try importing file again into a P6.0 database.
  4. Good luck!

Q&A: “Why do I get a permission error when I try to import P3 projects into P6?”

Your problem: “I am trying to import a file from Primavera P3.0 format to Primavera 6.1 and I get this error.  I am hoping that it is because it is a 3.0 file not a 3.1 file that is the cause.  As you can see I have many P3 projects and they all react the same way with the same error.”

P6_import_p3_error

My Solution:

From the screenshot above, we can conclude that a missing permission is the cause of this problem.

The username and password field can be left blank during the import, however, the username Everyone must be listed in the project access list.  If Everyone is not listed, then a valid P3 username will need to be entered to continue the import.

Note: If P3 is not installed on the workstation during the import, then user Everyone must be in the project access list.

To add “Everyone” to the P3 project access list, please do the following in P3:

  1. Choose File, Open.
  2. Highlight the project that you wish to import into Project Manager/Project Management and click the Access button.
  3. Add the “Everyone” user with Read / Write access.

Conversely, you can use the attached file to fix this problem.
(The attached file is a project access file containing the user Everyone assigned Read / Write access. Rename the attached xxxxac2.p3 and replace the xxxx with the 4 character P3 project name. Save to the folder where the imported project is located and the project can be imported. )

Q&A: “Can I import my project from MS Project 2007 to P6?”

Primavera P6.0 and P6.1 does not support importing MS Project 2007 based projects.

However, if you are running P6.2, Microsoft Project 2007 files can be imported into Primavera, but, not using Microsoft’s .mpp file format.  In Microsoft Project 2007, the project must first be saved as a .xml file.  It can then be imported into P6.2

Another powerful tool for import Microsoft Project 2007/2010 into P6 is P6 EPPM Administration Tool at http://www.eppmsoft.com/articles/p6eppm_admin/P6EPPM_Admin_doc.php. This tool allows you to export any Microsoft Project into .xer file, then import into P6 from the xer file. Oracle Primavera already allows users to import MS Project from XML format, but P6 still give errors while importing from MS Project XML file, but this P6 EPPM Administration Tool can import your Microsoft Project from .mpp or .mpx file without any error. The download of P6 EPPM Administration Tool is free of charge.

Please contact us if you have questions or need assistance with importing Microsoft files into Primavera.

How to import a compressed backup of a P3 project, i.e. with PRX extension into P6

Follow the steps below to import a compressed backup of a P3 project, i.e. with PRX extension into P6:

  1. From Windows Explorer, rename the .PRX extension to .EXE extension.
    Note: Please save the PRX/EXE file to a 16-bit friendly filepath to avoid issues. Also, If you do not see extensions in Windows Explorer, you need to uncheck the “Hide extensions for known file types” option from the Folder Options of the Tools menu in Windows Explorer.
  2. Double-click on the file and you will be prompted to extract the project.
  3. Select a directory to restore the project.
  4. Choose File, Import in Project Management and import this P3 project.
-->