Geoportal Server Installation Guide for Linux

Geoportal Server 1.2.2 Installation Guide For Linux

Contents 1.

INTRODUCTION ........................................................................................................................... 1

2.

SET UP THE DATABASE ................................................................................................................. 1

3.

2.1.

ORACLE .............................................................................................................................. 1

2.2.

POSTGRESQL ...................................................................................................................... 3

2.3.

MYSQL .............................................................................................................................. 6

DEPLOY AND CONFIGURE THE GEOPORTAL APPLICATION ................................................................. 8

December 2011

i

Geoportal Server Installation Guide for Linux 1. INTRODUCTION To install the geoportal on a Linux environment, first follow the first three sections of the Geoportal Server 1.2.2 Installation Guide. When you get to Section 4 – where the geoportal database schema is created – you will need to detour from the Geoportal Server 1.2.2 Installation Guide and follow the steps below. 2. SET UP THE DATABASE Depending on the database software you use, the database setup instructions vary significantly. Oracle users should follow the steps in section 2.1, PostgreSQL users should skip to section 2.2, and MySQL users should skip to section 2.3. CAUTION: For all database software – these instructions include running database scripts. If you run the database scripts on top of an existing geoportal installation, you will overwrite your existing geoportal database. 2.1.

ORACLE

In this section you will set up the tablespace and schema that will be used for the geoportal. The geoportal should run in its own tablespace and schema. Creating the geoportal database schema involves running two scripts:  

A “grants” script that sets the user permissions for creating the geoportal schema. A “create schema” script that creates the table structure, procedures and triggers, and populates tables in the geoportal schema.

Follow the steps below to prepare the copy the Oracle database files, prepare the tablespace, and run the scripts. 2.1.1. Copy the Oracle database files You will need to move the following files from the \Database Scripts\Oracle directory to your Linux machine: o o o o

grants_linuxoracle.sh grants_oracle.sql create_schema_linuxoracle.sh schema_oracle.sql

2.1.2. Setup the geoportal tablespace  Open the terminal window.

December 2011

1

Geoportal Server Installation Guide for Linux  Type: sqlplus /nolog Tip: In the following commands, be sure to include the semicolons.  SQL>connect sys/sys as sysdba;  SQL>create tablespace geoportal datafile '/oradata/geoportal.dbf' size 500M AUTOEXTEND ON;  SQL>create user geoportal identified by geoportalpwd default tablespace geoportal temporary tablespace temp;  SQL>quit. 2.1.3.

Run grants_linuxoracle.sh

 Open a terminal window.  Switch User to your Oracle user that can connect to the Database, e.g. su – oracle o IMPORTANT: make sure that the oracle user has permissions to run the shell files.  Change directories to point to where you have placed your database scripts E.g./Database Scripts/Oracle.  Run the grants_linuxoracle.sh file from the terminal window using the following parameters: Usage: ./ grants_linuxoracle.sh [sys username] [sys password] [geoportal username] Where [sys username] is the username of the sys user in Oracle [sys password] is the password of the sys user in Oracle [geoportal username] is the geoportal user you are creating Sample Input: ./grants_linuxoracle.sh sys sys geoportal When the script finishes executing you will be returned back to the command prompt and a text file (grants.txt) will open. Check the grants.txt file for error messages. Do not continue with the next script until error messages are resolved. 2.1.4.

Run create_schema_linuxoracle.sh

 Open a terminal window.  Change directories to point to where you have placed your database scripts December 2011

2

Geoportal Server Installation Guide for Linux E.g./Database Scripts/Oracle.  Run the create_schema_linuxoracle.sh file from the terminal window using the following parameters: Usage: ./create_schema_linuxoracle.sh [geoportal username] [geoportal password] Where [geoportal username] is the username of the geoportal schema owner. [geoportal password] is the password of the geoportal schema owner. Sample Input: ./create_schema_linuxoracle.sh geoportal geoportalpwd  When the script finishes executing you will be returned back to the command prompt and a text file (GPT_Schema.txt) will open. Check the GPT_Schema.txt file for error messages. Error messages and warnings that state a table or view does not exist can be ignored - It simply means that the script was trying to delete a nonexistent table.  If there are no problematic errors in the GPT_Schema.txt file, then open the geoportal database in a database browser, and verify that the database and tables were created.

2.2.

POSTGRESQL

Setting up a PostgreSQL database for the geoportal consists of copying the PostgreSQL database files, setting up database permissions, and creating the database schema. For the permissions and creating the database schema, two scripts are used:  

A “grants” script that sets the user permissions for creating the geoportal schema. A “create schema” script that creates the table structure, procedures and triggers and populates tables in the geoportal schema.

December 2011

3

Geoportal Server Installation Guide for Linux 2.2.1. Copy the PostgreSQL database files You will need to move the following files from \Database Scripts\PostgreSQL to your Linux machine:     2.2.2.

grants_linuxpg.sh grants_pg.sql create_schema_linuxpg.sh schema_pg.sql Run grants_linuxpg.sh  Open a terminal window.  Switch User to your PostgreSQL user that can connect to the Database, e.g. su – postgres o IMPORTANT: make sure that the postgres user has permissions to run the shell files.  Change directories to point to where you have placed your database scripts E.g./Database Scripts/PostgreSQL.  Run the grants_linuxpg.sh file from the terminal window using the following parameters: Usage: ./grants_linuxpg.sh [host] [port] [database] [geoportal schema] [postgresUser] [geoportal User] Where [host] is the machine name hosting PostgreSQL [port] is the port number of PostgreSQL. Default = 5432 [database] is the database name. Default = postgres [geoportal schema] is the name for the geoportal schema. Default = geoportal [postgresUser] is the user name to connect as (not the user name to create) [geoportal User] is the name for the geoportal schema owner. Default = geoportal Sample Input: ./grants_linuxpg.sh localhost 5432 postgres geoportal postgres geoportal  When prompted with the message “Enter password for new role:”, input the password for the geoportal user  When prompted with the message “Enter it again:”, input the password for the geoportal user again.

December 2011

4

Geoportal Server Installation Guide for Linux When the script finishes executing you will be returned back to the command prompt and a text file (grants.txt) will open. Check the grants.txt file for any possible error messages. 2.2.3.

Run create_schema_linuxpg.sh

 Run the create_schema_linuxpg.sh file from the terminal window using the following parameters: Usage: ./create_schema_linuxpg.sh [host] [port] [geoportal database] [geoportal user] Where [host] is the machine name hosting PostgreSQL [port] is the port number of PostgreSQL. Default = 5432 [geoportal database] is the database name that contains the geoportal schema. Default = postgres [geoportal user] is the name for the geoportal schema owner. Default = geoportal Sample Input: ./create_schema_linuxpg.sh machineName 5432 postgres geoportal  When prompted with the message “Enter password for geoportal user:”, input the password for the geoportal user  When the script finishes executing you will be returned back to the command prompt and a text file (GPT_Schema.txt) will open. Check the GPT_Schema.txt file for error messages. Error messages and warnings that state a Table or view does not exist can be ignored. It simply means that the script was trying to delete a nonexistent table.  Open the PostgreSQL Administrator tool.  Verify that a new schema and tables were created.

December 2011

5

Geoportal Server Installation Guide for Linux

2.3. MYSQL Setting up a MySQL database for the geoportal consists copying the database files, setting database permissions, and creating the database schema. Setting permissions and creating the schema is accomplished by running two scripts:  

A “grants” scripts that sets the user permissions for creating the geoportal schema A “create schema” script that creates the table structure, procedures, and triggers and populates tables in the geoportal schema.

It is assumed that you already have MySQL database software installed before running the scripts. 2.3.1.

Copy the MySQL database files

You will need to move the following files from \Database Scripts\MySQL to your Linux machine:   

grants_mysql.sh create_schema_mysql.sh schema_mysql.sql

2.3.2.

Run grants_mysql.sh

 Open a new terminal window.

December 2011

6

Geoportal Server Installation Guide for Linux  Change directories to point to where you have placed your database scripts, E.g./Database Scripts/MySQL.  Run the grants_mysql.sh file from the terminal window using the following parameters: Usage : ./grants_mysql.sh [dbserver] [port] [Geoportal database] [sys username] [sys password] [geoportal username] [geoportal server] [geoportal password] Where [dbserver] is the machine name hosting MySQL [port] is the port number of MySQL [Geoportal database] is the database that contains the Geoportal Schema [sys username] is the username of the sys user in MySQL [sys password] is the password of the sys user in MySQL [geoportal username] is the geoportal user [geoportal server] is the name of the geoportal web application server [geoportal password] is the geoportal user password Sample Input: ./grants_mysql.sh localhost 3306 geoportal sys sys geoportal geoportalserver geoportalpwd  When the script finishes executing you will be returned back to the command prompt and a text file (grants_mysql.txt) will open. Check the grants_mysql.txt file for any possible error messages. IMPORTANT: You must fix errors appearing in the grants_mysql.txt file; do not continue until the script runs without errors. Note that if you rerun the script after the user was successfully created, you may receive “ERROR 1396 (HY000): Operation CREAT USER failed…” You can ignore this error - see MySQL documentation for explanation http://bugs.mysql.com/bug.php?id=28331. 2.3.3.

Run create_schema_mysql.sh

 Run the create_schema_mysql.sh file from the command prompt window using the following parameters: Usage : ./create_schema_mysql.sh [host] [port] [Geoportal database] [geoportal user] [geoportal password] Where [host] is the machine name hosting MySQL database [port] is the port number of MySQL [Geoportal database] is the database that contains the Geoportal Schema [geoportal user] is the geoportal user.

December 2011

7

Geoportal Server Installation Guide for Linux [geoportal password] is the geoportal password. Sample Input: ./create_schema_mysql.sh localhost 3306 geoportal geoportal geoportalpwd  When the script finishes executing you will be returned back to the command prompt and a text file (Geoportal_Schema.txt) will open. Check the Geoportal_Schema.txt file for any error messages. Error messages and warnings that state a table or view does not exist can be ignored. It simply means that the script was trying to delete a nonexistent table.  Verify that a new database and tables were created.

3. DEPLOY AND CONFIGURE THE GEOPORTAL APPLICATION After running the database scripts, the Geoportal Server 1.2 Installation Guide proceeds to instructions for deploying the geoportal. You will refer back to the Geoportal Server 1.2 Installation Guide, starting at Section 5 to complete the geoportal installation, but first read the important note below. IMPORTANT: When configuring the geoportal web application – you will be modifying the gpt.xml file - be aware of one setting that will differ for Linux systems. The setting will need to be added in, and is for “httpClient.alwaysClose”. You will need to add this parameter to the gpt.xml file and set it to true. This needs to be done to avoid errors during harvesting. The cause is that Apache HTTP client doesn’t close socket connections by default if not explicitly told to do so by the server; in Linux each socket connection has its own file descriptor and imposes a limitation to the number of concurrently open files (invoke: ulimit –n to check that limitation; typically: 1024). This number can be quickly exhausted. To address this, the “httpClient.alwaysClost” parameter forces the Apache HTTP client to always close unused socket connections and seems to resolve the problem.

December 2011

8

Geoportal Server Installation Guide for Linux

To add in the parameter to your geoportal configuration, follow instructions below.  Follow instructions in Geoportal Server 1.2 Installation Guide section 5 to deploy your geoportal web application.  Open the \\geoportal\WEB-INF\classes\gpt\config\gpt.xml file, and find the closing catalog parameter, .  Just before the tag, add the following:  Return to the Geoportal Server 1.2 Installation Guide to continue with configuring the gpt.xml file.

December 2011

9

Geoportal Server 1.2.2 Installation Guide For Linux - GitHub

grants_linuxpg.sh [host] [port] [database] [geoportal schema] [postgresUser]. [geoportal ... [geoportal server] is the name of the geoportal web application server.

540KB Sizes 5 Downloads 285 Views

Recommend Documents

Geoportal Server 1.2.4 Installation Guide - GitHub
Jul 1, 2013 - With simple authentication, there is only one user in the geoportal – the administrator. This ... Highlight the service representing your Directory Server. ... On the Network Parameter screen, enter the following parameters: ..... Gla

Geoportal Server 1.2.2 Installation Guide for WebLogic - GitHub
After you've obtained the .jar file, you will need to copy it to your WebLogic deployment and add it to the WebLogic domain classpath, following the steps below:.

Installation Guide - GitHub
Create the database tables. 3.2.5. (Optional) ... hedgehog Data Manager This is the user that will own the database created by. Hedgehog .... link on Homepage.

Smap Server Installation for LINUX Tutorial.pdf
Page 1 of 14. 1 | P a g e. INSTALLING SMAP SERVER ON UBUNTU DESKTOP 16.04 Long Term Service TUTORIAL. Nchoolwe Progress Sinampande1,2*, ...

OpenCMIS Server Development Guide - GitHub
Nov 6, 2013 - introduction and is available as a free pdf download at Manning's site here: ... the 10 minute video introducing this tool if you are not already familiar with it here: ... of this exercise is to demonstrate the server framework on top

Guide for Installation of Reporting Services SQL Server 2000.pdf ...
Guide for Installation of Reporting Services SQL Server 2000.pdf. Guide for Installation of Reporting Services SQL Server 2000.pdf. Open. Extract. Open with.

Greenplum Chorus 2.0 Installation Guide - GitHub
Dec 10, 2012 - Use, copying, and distribution of any EMC software described in this publication requires an applicable software .... management systems, database administration, and structured query language (SQL). ... questions about your account. .

installation manual - GitHub
May 8, 2014 - 2. MEGAlib download: It will check if MEGAlib is present. If not it will ..... the source code through the following html file: doc/html/index.html. 9.

Linux Kernel Development - GitHub
Page 10 .... Android's “life of a patch” flowchart. Gerrit is only one tiny part in the middle. Replace that one part with email, and everything still works, and goes ...

Linux Heap Internals.key - GitHub
BACKGROUND. Linux heap becomes hard to exploit due to the new version of. GLIBC. Hundreds of thousands of assertions there;. ASLR and Non-eXecutable heap. Heap issues are scarce in CTF games. spring up in recent games like HITCON CTF & Hack.LU CTF. 2

Arch Linux - GitHub
Sep 10, 2015 - Installing software (PDF viewer) on Windows. 1 Open a web browser. 2 Do a web search for Adobe Reader. Jack Rosenthal. Arch Linux ...

Booting Linux - GitHub
Feb 23, 2017 - off their new 10 MB hard disk in 1983. • They added a 4-partition table to ... ends before the partition data. • This is called Master Boot Record ...

team foundation server 2010 installation guide pdf
installation guide pdf. Download now. Click here if your download doesn't start automatically. Page 1 of 1. team foundation server 2010 installation guide pdf.

FPLLL - Installation, Compilation, Dependencies - GitHub
Jul 6, 2017 - 2. ./configure (optional: --prefix=$PREFIX). 3. make (optional: -jX for X ... .gnu.org/software/libtool/manual/html_node/Updating-version-info.html ...

Axxia Linux Changes Linux 1.59 Changes Linux 1.58 ... - GitHub
Add a driver to 5600 and 6700 for OEM function calls to the secure monitor. This driver ... Remove the unused Ethernet interface in 5600 simulation device trees.

Axxia Linux 3.10 Changes Linux 8.8.1.65 Changes Linux 8.8 ... - GitHub
Support for big endian on ARM (5500). • MSI support on both PCIe ... when writing to it. • GPIO Changes. – Remove GPIO platform data, use the device tree. 5 ...

Misconception About GNU/Linux - GitHub
You don't have to be a Computer geek to Use GNU/Linux. ○. Anyone Can Use ... Stable Linux Distributions need no Maintenance at all. ○. Since root access ...

Installation of RHEL/CentOS/ 6 updates for Servers ... - GitHub
[root@localhost /]# yum groupupdate "Development Tools". [root@localhost /]# yum ... Download the package, which will be in tar.gz format. [root@localhost /]# tar ...... Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.5.10-114.el6] smb: \> ls ...

LSI Axxia Linux Changes - GitHub
PCIe inbound mapping support on 3500. 1 ... Added support for DEVTMPFS to the default configurations. • Removed power of 2 ..... Define AMARILLO_WA in.

Caching layer PageSpeed server - GitHub
www.example.com/index.html. PageSpeed server. Partially rewritten response for www.example.com/index.html with reinstrumentation done. Cache miss/expiry.

Quick Guide for recurrentR - GitHub
(2010) to the researchers who are interesting in semi-parametric recurrent data analysis. They studied how to estimate the recurrence process and survival ...

apache server in linux pdf
Page 1. Whoops! There was a problem loading more pages. apache server in linux pdf. apache server in linux pdf. Open. Extract. Open with. Sign In. Main menu.