Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Table of Contents
Introduction ...................................................................................................................................... 2
SQL Server Setup............................................................................................................................ 2
Create XSHIPEXP_VIEW View .................................................................................................. 5
Create XSHIPEXPP_VIEW View ................................................................................................ 5
Oracle Setup .................................................................................................................................. 10
Create set_default_schema Trigger .......................................................................................... 13
This document defines how to setup this SHPSYS user on SQL Server 2005 and Oracle.
3. Set the Default database to be the database this user will have access to.
5. In the Users mapped to this login selection box, click the checkbox for the database this
user will require access to. Set the Default Schema to the schema (X3 Folder) where the
shipping data resides.
USE [database]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [schema].[XBSHPEXP_view]
AS
SELECT *
FROM [schema].[XBSHPEXP]
USE [database]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [schema].[XBSHPEXPP_view]
AS
SELECT *
FROM [schema].[XBSHPEXPP]
9. Select Securables from the left-hand pane. Add the Shipping_Interface stored
procedure, XBSHPEXP_view and XBSHPEXPP_view views and XBSHPINT table from
the desired schema (X3 folder).
11. When setting up the ODBC and shipping system connections to the X3 database, user
the SHPSYS user instead of the X3 folder user. Example: User SHPSYS instead of
PILOT.
1. In Security Users, create a new user called SHPSYS and give it a password of tiger
to be consistent with other X3 database login users.
2. In Tablespaces, be sure the Default is the database this user will require access to.
XBSHPEXP Select
XBSHPEXPP Select
XBSHPINT Alter, Delete, Insert, Select and Update
Create the trigger in Oracle using the following SQL script. Change the newschema
reference to be the schema (X3 folder) you wish to access. Example: PILOT.
This trigger will be run each time the SHPSYS user logs on to Oracle and can be
viewed/updated in the SYSTEM schema.