Select to view content in your preferred language

Oracle Primavera in Arc GiS

4931
6
Jump to solution
11-16-2020 06:59 AM
MonikaSamorajska
Emerging Contributor

Hello,

Few weeks ago, I have addtended the ESRI Infrastructure Management & GIS Conference where I joined the workshop about connecting ArcGIS Pro and Oracle Primavera6.

Unfortunatelly I didn't pick up the detailed information regarding this possibility.

Can you provide me with more information about the connection to Oracle Primavera6 Enterprise and ArcGIS Pro?

I would appriciate any information regarding this topic.

 

Regads,

Monika

0 Kudos
1 Solution

Accepted Solutions
David
by Esri Contributor
Esri Contributor

Last year we created a standard workflow that quickly and easily synchronizes schedule data that is tied to GIS data. We have released the open-source Schedule Sync ArcGIS Pro Toolbox which enables this synchronization workflow. Included in the toolbox are tools for the syncing of schedules in a wide variety of formats. The Sync ArcGIS Pro Toolbox is compatible with the outputs from the most common scheduling platforms including Oracle Primavera Cloud, P6 Professional, P6 EPPM, Microsoft Project, Asta Powerproject, InEight, and any scheduling platform that can export CSV, Excel, or P6 XML files.

5-minute video: Construction Schedule Integration with GIS

If using ArcGIS GeoBIM, there is a similar way to integrate schedules as well. Introduction to Schedules in ArcGIS GeoBIM

View solution in original post

0 Kudos
6 Replies
David
by Esri Contributor
Esri Contributor

Thanks for attending the conference and for watching our session on integrating project schedules. In the current version of the this tool, it is not available for download. It was developed by our Professional Services team who continually improves the tool and would need to meet with you and your P6 users to make sure it can be used with your current P6 configuration. If you are interested in having that meeting, then you can reach out to your account manager or email AEC_Consulting@esri.com 

This month, we will post a StoryMap to the AEC Community here containing all the information shared during the conference session. 

Tags (3)
klandichoph
New Contributor

Hi, I just want to ask on which ArcGIS Pro version the tool is supported?

0 Kudos
David
by Esri Contributor
Esri Contributor

Although it was first created for version 2.5, I believe that it would work on any version since the ArcGIS Pro 2.0 major release. 

klandichoph
New Contributor

Thanks, David!

0 Kudos
srijak
by
New Contributor

Hello, MonikaSamorajska

I hope this may help you-here a connection to Oracle Primavera P6  Enterprise and ArcGIS Pro?

To connect to Oracle from ArcGIS clients, install an Oracle client on the ArcGIS client machines, set environment variables that reference the Oracle, and connect to the database from ArcGIS.

Once the Oracle client is configured on all your ArcGIS client machines, create a database connection file. To publish ArcGIS Server web services that reference the data in your Oracle database, register the database connection file with your ArcGIS Server sites.

Connect from ArcGIS Pro

To connect from an ArcGIS Pro project to Oracle, install an Oracle client on the ArcGIS Pro computer, set the PATH environment variable to the location of the Oracle client, and create a database connection.

Install the Oracle client

To make a connection from a client machine to an Oracle database, you must install the Oracle client application on the client machine. Be sure you install a release of the Oracle client application that is compatible with the release of the database to which you want to connect.

You can obtain the Oracle Instant, Runtime, or Administrator Client from Oracle, and install it on the client computer, following the directions in your Oracle documentation.

Set the PATH variable

Set the PATH environment variable on the ArcGIS Pro machine to the location of the Oracle Client installation. See Microsoft Windows documentation if you need instructions for setting the PATH environment variable.

Note:

If both ArcMap and ArcGIS Pro are installed on the same computer, set the PATH variable to read the 64-bit client before the 32-bit client. For example, if you installed the 32-bit Oracle Instant Client to c:\Program Files (x86)\Oracle and installed the 64-bit Oracle Instant Client to c:\Program Files\Oracle, add the following to the beginning of your PATH variable value: C:\Program Files\Oracle; C:\Program Files (x86)\Oracle;

If ArcGIS Pro was open on the machine before you set the PATH variable, restart it to pick up the new setting.

Connect to the database

Add a database connection using the Database Connection dialog box or the Create Database Connection tool. The following steps describe using the Database Connection dialog box.

  1. Right-click Databases in the Catalog pane and click New Database Connection.
  2. Choose Oracle from the Database Platform drop-down list.
  3. Either type the Oracle TNS name in the Instance text box or provide one of the following Oracle Easy Connect strings:
    • The name of the Oracle server/Oracle service name or ID

      For example, if Oracle is installed on my server and myopic is the Oracle service name, type the following:

      my server/myopic

    • The name of the Oracle server: Oracle port number/Oracle service name or ID

      In this example, Oracle is installed on my server, is listening on port 60000, and service is the Oracle service name.

      myserver:60000/service

    • The URL of the Oracle server

      The URL for the same instance shown in the last example would be the following:

      //myserver:60000/service

    • The name of the Oracle server (You can use this if the Oracle listener on the server is configured to point to a default instance.)
    • The IP address of the Oracle server/Oracle service name or ID

      For example, if the address of the server is 10:10:10:10, and the Oracle service name is orasvc, type 10:10:10:10/orasvc.

      For IPV6 addresses, place brackets around the address, for example, [4000:ab5:0:0:f666:d191:77f5:e2bd]/orasvc.

    • The IP address of the Oracle server: Oracle port number/Oracle service name or ID

      In this example, the IP address is 10:20:30:40, the port is 59999, and the Oracle service is myomy1: 10:20:30:40:59999/myomy1.

      An IPV6 address for the same port and service would look like the following: [6543:ef4:0:1:f587:l249:12f9:a3cd]:59999/myomy110:20:30:40:59999/myomy1.

    Be sure your Oracle instance is configured to allow Easy Connect. If you have the full Oracle client installed but want to use Easy Connect syntax to connect, be sure the SQL net.ora file on the client is configured to allow the use of Easy Connect and the Oracle server is configured to allow Easy Connect syntax. Also note that if your Oracle instance is not listening on the default Oracle port number, you must use connection syntax that includes the port number.

  4. Choose the type of authentication to use when connecting to the database: Database authentication or Operating system authentication.
    • If you choose Operating system authentication, you do not need to type a user name and password—the connection is made using the login name and password used to log in to the operating system. If the login used for the operating system is not a valid database login, the connection fails. Be aware that you cannot use operating system authentication if you are using the Oracle instant client.
      Note:

      When you use operating system authentication in Oracle, the operating system login is prefixed with an os_authent_prefix string (by default, OPS$) and stored in the USERNAME table. The maximum number of characters allowed for the user name when connecting to the geodatabase is 30. In these specific cases, ArcGIS will place quotation marks around your user name to pass it to the database. Those quotation marks count toward the 30-character total.

    • If you choose Database authentication, you must provide a valid database user name and password in the User name and Password textboxes, respectively. User names can be a maximum of 30 characters.

      Uncheck Save user name and password if you prefer not to save your login information as part of the connection; doing this can help maintain the security of the database. However, if you do this, you will be prompted to provide a user name and password every time you connect.

     

    Note:

    Save user name and password must be checked for connection files that use database authentication and provide ArcGIS web services with access to the database, or if you want to search ArcGIS Pro to locate data accessed through this connection file.

     

  5. Click OK to connect.

Connect from ArcGIS Server

If Oracle and ArcGIS Server are running on separate servers, install a 64-bit Oracle client on all machines in the ArcGIS Server site. On Windows machines, add the Oracle client directory to the PATH variable.

If ArcGIS Server is installed on Linux servers, edit the init_user_param.sh script installed with ArcGIS Server to include information about the Oracle client and instance, and restart ArcGIS Server.

If you want the services you publish to ArcGIS Server to use the data in your database or geodatabase in Oracle, register the database with your ArcGIS Server sites.

Install the Oracle client

If ArcGIS Server and Oracle are installed on different servers, you must install the Oracle client application on each machine in the ArcGIS Server site. Be sure you install a release of the Oracle client application that is compatible with the release of the database to which you want to connect.

You can obtain the Oracle Instant, Runtime, or Administrator Client from Oracle, and install it on the ArcGIS Server machines. Follow the directions in your Oracle documentation to install the Oracle client.

Set the PATH environment variable (Windows only)

Set the PATH environment variable on each ArcGIS Server Windows server to the location of the Oracle Client installation. See Microsoft Windows documentation if you need instructions for setting the PATH environment variable.

Note:

If both ArcGIS Server and ArcGIS Desktop are installed on the same Windows computer, set the PATH variable to read the 64-bit client before the 32-bit client. For example, if you installed a 32-bit Oracle Instant Client to c:\Program Files (x86)\Oracle and installed the 64-bit Oracle Instant Client to c:\Program Files\Oracle, add the following to the beginning of your PATH variable value on Windows: C:\Program Files\Oracle; C:\Program Files (x86)\Oracle;

If ArcGIS Server was running before you configured the Oracle client and set the PATH variable, you must restart ArcGIS Server. You can restart ArcGIS Server from the Windows Services interface.

Alter the init_user_param.sh script (Linux only)

Once you have installed the database client files, alter the init_user_param.sh script installed with ArcGIS Server to reference the client files. You can access this script by browsing to the <ArcGIS Server installation directory>/ArcGIS/server/user directory.

Note:

If your user profile references the Oracle client and the client information differs between the user profile and init_user_param.sh, ArcGIS Server may experience problems when attempting to connect to the database. To alleviate connection issues, remove the reference information from your user profile and reference your database client libraries again using the following steps:

  1. Ensure that the ArcGIS Server installation owner on each machine has at least read and execute permissions on the database client libraries.
  2. Open the init_user_param.sh script in a text editor.
  3. Remove the comment marks (#) from the lines beginning with export.

    If you installed the Oracle Administrator, Developer, or Runtime client, remove comment marks from all the Oracle lines beginning with export.

    #
    # To connect to Oracle
    #
    export ORACLE_BASE=<Oracle_Installdir>/app
    export ORACLE_HOME=$ORACLE_BASE/<Oracle_Release>/product/<Oracle_Version>/client_1
    export ORACLE_SID=<set when applicable>
    export TNS_ADMIN=<set when applicable. e.g.$ORACLE_HOME/network/admin>
    export PATH=$ORACLE_HOME/bin:$PATH
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH

     

    If you are using the Oracle database Instant client libraries, you only need to uncomment and set the $LD_LIBRARY_PATH, for example

     

    #
    # To connect with Oracle Instant Client
    #
    export LD_LIBRARY_PATH=<Location_to_instantclient>:$LD_LIBRARY_PATH

     

  4. Set values for the export variables.
    • For Oracle Administrator, Developer, or Runtime clients, uncomment and set the following variables using information specific to your implementation:
      • ORACLE_BASE=<Oracle_Installdir>

        The <Oracle_Installdir> is the path to and name of the top-level directory where the Oracle client is installed.

      • ORACLE_HOME=$ORACLE_BASE/<Oracle_Release>/product/<Oracle_Version>/client_1

        This is the path to the Oracle client library files. Set ORACLE_HOME to the directory where these reside. By default, the directory name is client_1, but your installation may have a different directory name.

      • If you will be using an Oracle system ID (SID) to connect, set ORACLE_SID= to the Oracle system ID of your database. If you will be using an Easy Connect string to connect, comment out this line.
      • Set TNS_ADMIN= to the location of your Oracle client TNS administration files. If you will be using an Easy Connect string to connect, you do not need to set this value and must comment out this line.
    • For Oracle Instant clients, uncomment and set only the LD_LIBRARY_PATH variable, replacing <Location_to_instantclient> with the path to and directory name where the Oracle Instant client files are located.
    • If ArcGIS Server and Oracle are installed on the same server, uncomment and set the following variables:
      • ORACLE_BASE=<Oracle_Installdir>

        The <Oracle_Installdir> is the path to and name of the top-level directory where Oracle is installed.

      • ORACLE_HOME=$ORACLE_BASE/<Oracle_Release>/product/<Oracle_Version>/client_1

        This is the path to the Oracle library files. Set ORACLE_HOME to the directory where these reside. By default, the directory name is db_<n>, but your installation may have a different directory name.

      • If you will be using an Oracle system ID (SID) to connect, set ORACLE_SID= to the Oracle system ID of your database. If you will be using an Easy Connect string to connect, comment out this line.
      • Set TNS_ADMIN= to the location of your Oracle client TNS administration files. If you will be using an Easy Connect string to connect, you do not need to set this value and must comment out this line.
  5. Save and close the script.
  6. After you have configured the init_user_param.sh on each machine in your ArcGIS Server site, run the start-server.sh script on each machine to restart ArcGIS Server.

    ./startserver.sh

    Regards,

    Srija.

 

David
by Esri Contributor
Esri Contributor

Last year we created a standard workflow that quickly and easily synchronizes schedule data that is tied to GIS data. We have released the open-source Schedule Sync ArcGIS Pro Toolbox which enables this synchronization workflow. Included in the toolbox are tools for the syncing of schedules in a wide variety of formats. The Sync ArcGIS Pro Toolbox is compatible with the outputs from the most common scheduling platforms including Oracle Primavera Cloud, P6 Professional, P6 EPPM, Microsoft Project, Asta Powerproject, InEight, and any scheduling platform that can export CSV, Excel, or P6 XML files.

5-minute video: Construction Schedule Integration with GIS

If using ArcGIS GeoBIM, there is a similar way to integrate schedules as well. Introduction to Schedules in ArcGIS GeoBIM

0 Kudos