Downloading and Installing Spatial Studio
Spatial Studio must be downloaded and installed before anyone can use it to perform interesting work on spatial data.
See https://www.oracle.com/database/technologies/spatial-studio/get-started.html for more information on downloading and installing Spatial Studio.
The different types of installation options are described in the following sections:
-
Installing and Configuring the Spatial Studio Quick Start
Quick Start is an easy method for getting started, and is well suited for personal and development use. -
Installing Spatial Studio on Oracle WebLogic Server
Spatial Studio can be deployed to an Oracle WebLogic Server 15c (15.x) domain. This is the recommended approach when multiple end users will access the same Spatial Studio application. -
Installing Spatial Studio on Apache Tomcat
You can deploy and run the Spatial Studio web application on Apache Tomcat version 11.x. -
Installing Spatial Studio from Oracle Cloud Marketplace
You can provision Spatial Studio to Oracle Cloud from Oracle Cloud Marketplace.
Installing and Configuring the Spatial Studio Quick Start
Quick Start is an easy method for getting started, and is well suited for personal and development use.
The Quick Start is packaged in a single zip that contains everything you need to start using Spatial Studio, except for Java (JDK 11 or later) and your own database schemas.
Before installing the Quick Start, ensure that you meet the following prerequisite requirements:
-
You must have Java installed on your system and the
JAVA_HOMEenvironment variable is pointing to the full JDK installation of Java SE Development Kit. Note that the Quick start installation requires Java JDK 11 (64-bit) or later. -
Ports
8080and4040on your system are not being used by any other (web) applications. Port8080is used with thehttp://protocol, while port4040is for thehttps://protocol. Although you can direct Spatial Studio to use different ports,8080and4040are the default.Note that by default Spatial Studio allows access using
httpsonly.If you prefer to enable
httpaccess, then perform the following steps:-
Edit the
conf/server.propertiesfile in theOracle_Spatial_Studiodirectory and update thehttpEnabledproperty totrue. -
Edit the
sgtech_config.jsonfile and update thehttps_onlyproperty tofalse(see Changing the Configuration Using the sgtech_config.json File). -
Restart the Spatial Studio application.
-
Verify that the
httpport is opened in the host OS firewall.
-
You can perform the following steps to install and configure the Spatial Studio Quick Start:
-
Download the Quick Start zip archive
OracleSpatialStudio_qs.zip. -
Unzip (extract) the
OracleSpatialStudio_qs.zipfile.This results in the
Oracle_Spatial_Studiodirectory. -
Navigate to the
Oracle_Spatial_Studiodirectory from a command window (Windows) or terminal (Linux or Mac).This directory contains several
.bator.shfiles. -
Start the Spatial Studio application by running
start.shorstart.bat.On Linux or Mac you may need to ensure that the
.shfiles are executable by first running the command:chmod u+x *.sh -
Launch Spatial Studio in your browser using the
https://localhost:4040/spatialstudioURL and log into the web application.You can login using the default admin user login credentials -
admin/welcome1. However, it is strongly recommended that you immediately change the password. See the README file in the Quick Start on how to change the (encrypted) password for the admin user.Also, note the following:
-
The default port is 4040. However, you can change the port by editing the
conf/server.propertiesfile in theOracle_Spatial_Studiodirectory. You must restart the application after you make any change to this file. (The same applies if you change the HTTP port value from the default 8080.) -
The Quick Start provides the following predefined web user login accounts:
-
admin: Administrator user account -
daustinandbruce: Two regular user accounts
These predefined users and their login passwords are defined in the
jetty-home/security/jetty-realm-mt.propertiesconfiguration file. The passwords are all stored in encrypted form. Before you start the application for the first time, it is strongly recommended that you change the password of the default administrator useradmin. See the README file in the Quick Start on how to change the (encrypted) password for the admin user and other regular Spatial Studio users.Also, all other passwords, such as those used to log into the Spatial Studio metadata schema or for any user-created connections to database schemas, are strongly encrypted everywhere.
-
-
If you wish to configure the Spatial Studio server to use a CA-signed certificate, then see Using a CA-Signed SSL Certificate in the Quick Start Installation for more information.
-
The README file also contains information about starting and stopping the web application. To stop the application, the preferred approach is to start a second terminal or command window, then go to the same
Oracle_Spatial_Studiofolder and run thestop.batorstop.shscript.
If your metadata connection detail is already stored in the
sgtech_config.jsonfile, then see Using Oracle Spatial Studio to get started with Spatial Studio.Otherwise, proceed to step-6.
-
-
Optionally, select the metadata connection type.
Perform this step only if you are starting a new instance of Spatial Studio on your system. This step is required to set the metadata repository in the database where Spatial Studio stores and manages the metadata for all its objects (such as the connections, dataset, and so on). See Setting Up the Spatial Studio Metadata Schema for more information on the metadata schema and the privileges required for the schema user.

Description of the illustration metadata_conn_type.png
Perform the following steps depending on your choice of Metadata connection type:
-
Oracle Database
The Specify metadata schema details dialog opens as shown:

Description of the illustration metadata_schema_db_connection.png
-
Select the database Connection.
Supported values are:
-
Service
-
SID
-
-
Enter the Service/SID value depending on the connection value selected in the earlier step.
-
Enter the database User name and the Password for the user.
-
Enter the Host and Port details.
-
Click OK.
-
-
Oracle Autonomous Database
The Upload wallet dialog opens.
-
Drag and drop the wallet file (for your Autonomous AI Database instance) or click to upload the wallet from your system.
-
Click OK.
The Specify metadata schema details dialog opens as shown:

-
Enter the Autonomous AI Database User name and the Password for the user.
-
Select the appropriate Service from the drop-down list.
-
Optionally, enter the Proxy Host and Proxy Port details.
-
Click OK.
-
The provided metadata schema details get stored in the
sgtech_config.jsonfile. The Getting Started page opens in the web application. See Using Oracle Spatial Studio to get started with Spatial Studio. -
Installing Spatial Studio on Oracle WebLogic Server
Spatial Studio can be deployed to an Oracle WebLogic Server 15c (15.x) domain. This is the recommended approach when multiple end users will access the same Spatial Studio application.
Note:
-
A WebLogic Server license is required in order to host Spatial Studio in WebLogic Server for multiple end users.
-
For WebLogic Server 15c, use the WebLogic Remote Console desktop application to deploy and manage Spatial Studio. The built-in WebLogic Server Administration Console at
host:7001/consoleis no longer used for WebLogic Server 15c.
The general approach for deploying Spatial Studio to WebLogic Server is no different from deploying any other Java EE EAR application. However, for a WebLogic Server 15c instance, deployment and life cycle operations are performed from WebLogic Remote Console.
-
Download and install WebLogic Remote Console, if it is not already installed.
-
Download the Studio EAR archive from Oracle Technical Resources or eDelivery, and save it to your local system.
-
Create a connection to the target WebLogic Server 15c domain in WebLogic Remote Console.
If you do not already have a target domain, install WebLogic Server 15c, create a domain such as
base_domain, and then connect to it from WebLogic Remote Console.
-
Create an application deployment using the Spatial Studio EAR file.
-
Select the connection for the target domain in WebLogic Remote Console.
-
Go to Edit Tree > Deployments > App Deployments.

Description of the illustration wls_app_deployments_navigation.png
-
Select or upload the EAR file, choose the appropriate target server, and complete the deployment form as shown in the following figure.

Description of the illustration wls_create_app_deployment.png
-
Click Create.
The deployment gets added as an item in the shopping cart displayed on the top right of the page.
-
Open the shopping cart and click Commit Changes to deploy the Spatial Studio application.
If On Deployment is set to Start Application, as shown in the preceding figure, then WebLogic Server automatically starts Spatial Studio after the deployment is complete. Otherwise, follow step-5 to manually start the application.
-
-
Perform this step only if you need to manually start Spatial Studio.
-
Navigate to Monitoring Tree > Deployments > Application Deployment.
-
Select the deployed Spatial Studio application and click Start.
-
-
Access Spatial Studio using the WebLogic Server’s URL followed by the
/spatialstudiocontext path, such ashttp://localhost:7001/spatialstudio.
Preventing a Spatial Studio Admin User from General WLS Administration
If you want to prevent a Spatial Studio administrative user from performing other general WebLogic Server administrative operations, follow the instructions in this topic.
The Spatial Studio application by default allows all WebLogic managed admin users (those who are in WebLogic’s Administrators group) to log into the Spatial Studio application and assume Admin role inside the Spatial Studio application as well.
However, in some scenarios, your organization may not want to provide the WebLogic Server admin account information to the user(s) that will be administering only the Spatial Studio application. In such cases, the WLS system administrator can create a new WLS group with the id value of “SGTech_SystemAdmin” in the default WLS security realm. Then, either create a new user or assign an existing non-WLS-admin user to this group. From then on, this user will assume the admin role of the Spatial Studio whenever logged in, but will not be able to administrate the WLS server in general.
Also, note the following:
-
All WLS managed users will be able to log into Spatial Studio by default, but they will be limited to accessing only their own Spatial Studio objects such as connections, datasets, and projects.
-
Administrative users of Spatial Studio will have full access to every Spatial Studio object created by everyone.
-
When using WebLogic’s default embedded LDAP security realm as identity provider, if the user name and the assigned application role name differ only by casing (for example, admin and Admin respectively), then it is recommended that you adjust both the names to lowercase. This is to avoid case sensitivity issues in Spatial Studio between user, group, and security policies.
Installing Spatial Studio on Apache Tomcat
You can deploy and run the Spatial Studio web application on Apache Tomcat version 11.x.
The following are the general steps for deploying and running Spatial Studio on Tomcat:
-
Download and install the latest Apache Tomcat version 11.x release.
See the Apache Tomcat Documentation for setting up Tomcat.
-
Unzip the Tomcat zip file and configure it as required, such as removing all default web applications found in the
<TOMCAT_HOME>/webappsdirectory. -
Download the Spatial Studio Tomcat specific WAR archive from Oracle Software Delivery Cloud.
-
Copy the downloaded WAR archive into the
<TOMCAT_HOME>/webapps/directory. -
Ensure to rename the WAR file to just
spatialstudio.war.Note that there is no version or build string in the file name. See About the Spatial Studio WAR Archive for Tomcat for more information.
-
Configure Tomcat users and roles.
Ensure to configure the
ADMINuser for Spatial Studio. See Configuring Tomcat Users for Spatial Studio for more information. -
Start the Tomcat server using the startup script in the
<TOMCAT_HOME>/bindirectory.Note that you may need to wait a few seconds for Tomcat and Spatial Studio to fully initialize before attempting to access the Spatial Studio web application.
-
Launch Spatial Studio in your browser by opening the URL -
https://localhost:8443/spatialstudio.Note that in the preceding URL, port
8443is the defaulthttpsport for Apache Tomcat. If you wish to enablehttpaccess (default port8080), then see Allow HTTPS-ONLY Access for more information.You can then log in using one of the users you defined on step-6.
Note that the Spatial Studio access URL uses the default host name and port. If you change the default Tomcat network and port configurations, then you need to adjust the URL accordingly.
If for some reason you cannot access the URL, then you can always check the following log files:
-
Tomcat’s server logs in the
<TOMCAT_HOME>/logsdirectory. -
Spatial Studio’s own log files in the
<USER_HOME>/.sgtech/logsdirectory, where<USER_HOME>is the home directory of the operating system user.
-
-
About the Spatial Studio WAR Archive for Tomcat
You must download thespatialstudio_tomcat.wararchive for running Spatial Studio on Tomcat. -
Configuring Tomcat Users for Spatial Studio
In order to run Spatial Studio on Tomcat, you need to configure at least one Tomcat user who can act as the administrator for Spatial Studio.
About the Spatial Studio WAR Archive for Tomcat
You must download the spatialstudio_tomcat.war archive for running Spatial Studio on Tomcat.
This archive file bundles all the required dependencies that enables it to run on a freshly downloaded and installed Tomcat instance.
It is important to note the following:
-
You must rename the
spatialstudio_tomcat.warfile tospatialstudio.warwhen it is placed in the Tomcat’s webapps directory. This is because Tomcat uses the file name as the web application’s context root, and for Spatial Studio it is typically /spatialstudio. -
If you have an existing Tomcat installation with other web applications running on it or different versions of the dependency libraries are already installed, then there might be issues running Spatial Studio due to library and version conflicts. In such cases, you can raise a service request with My Oracle Support in order to have the issues resolved.
Configuring Tomcat Users for Spatial Studio
In order to run Spatial Studio on Tomcat, you need to configure at least one Tomcat user who can act as the administrator for Spatial Studio.
Note that when you access the Spatial Studio web application, the username and password that you enter in the login page are passed to Tomcat for authentication. Once the user is authenticated, Spatial Studio inspects the result principal. If the principal has a role named SGTech_SystemAdmin, then the logged in user will be considered an admin user for Spatial Studio.
If your Tomcat instance has already been configured to provide authentication using an external identity provider, then ensure one or some of the users provided by the external identity provider are assigned the SGTech_SystemAdmin role so they can administrate Spatial Studio.
If your Tomcat installation relies on its simple built-in user management mechanism, then you will likely be adding the role and user to tomcat-user.xml configuration file, which is found in the <TOMCAT_HOME>/conf directory.
The following simple example defines two users and two roles, with one being SGTech_SystemAdmin in tomcat-user.xml configuration file:
<role rolename="role1"/>
<role rolename="SGTech_SystemAdmin"/>
<user username="admin" password="Welcome1" roles="manager-gui, manager-script, SGTech_SystemAdmin"/>
<user username="scott" password="Welcome1" role="role1"/>
Once the roles are defined, then you can log into Spatial Studio using either the user name scott or admin. Since the admin user has the SGTech_SystemAdmin role, the user will be able to administrate Spatial Studio once logged in, whereas scott user will just be a regular Spatial Studio user.
Installing Spatial Studio from Oracle Cloud Marketplace
You can provision Spatial Studio to Oracle Cloud from Oracle Cloud Marketplace.
See Deploy Spatial Studio from Cloud Marketplace for more information on deploying Spatial Studio from Cloud Marketplace.