Upload
brauliootavalo
View
217
Download
0
Embed Size (px)
Citation preview
7/27/2019 TS Loading
1/11
7/27/2019 TS Loading
2/11
Browser is used for multi-user configurations andallow clients that are remote to SQL instance toconnect.
F. User Setup: If the application user is not theSQL Server administrator, the security
logins must be setup by the administratorto allow access to the SQL databasestructures via Windows Authentication. T o
Figure A7.2b - Select Restart to restart the server
and change the Server Authenication mode.
Figure A7.3b - Step I.B.7 Select Authenticity
method.
Figure A7.3a - In Studio Manager, right click the
login and select New Login...
Figure A7.3c - Check each database structure for
Megaflex databases and check public and
db_owner at the bottom.
Figure A7.3d - Select Settings and check Grant
and Enabled as shown above.
Figure A7.3e - Select Status and check Grant and
Enabled as shown above.
7/27/2019 TS Loading
3/11
setup these logins, proceed asfollows:
1. Open the Studio Manager and go to the
Security folder and right click theNew login, Figure A7.3a.2. This opens Figure A7.3b. In this display
select search to select theuser that will be connecting to theinstance of the server. Select theAdvanced and choose the user fromthe list. If not found, reviewtheexample and enter the users nameproperly and select check to verifyconnection.
3. From Figure A7.3c, select to displayuser mapping, place a check for eachdatabase for the application to
authorize user access. Select rolemembership at bottom of display fordb_owner and public.
4. Next, Select Status from Figure A7.3band Figure A7.3e appears. Ensure thePermission... is Grant and Login isEnabled.
G. If you have made any changes to thelogins, restart the SQL server by repeating,step B.1.b and c.
II. SQL-Databases Disk 1 of 2:
A. SQL Database SetupThe SQL databases installation createsthe following database structures in theMicrosoft SQL database software.
instdata_data.mdfltdata_data.mdfctselec_data.mdfctsinst_data.mdfctsmain_data.mdfctsmech_data.mdfctssys_data.mdfelecdata_data.mdfloopdata_data.mdf
CD installation:Prior to creating the database structures and tables,you must first create a folder on the SQL server tocreate the databases. Go to server and create afolder i.e. c:\megaflex\mssql. This will be the folderyou will enter in step 3 below.1. Install the CD, a prompt will appear to select
the Instance of SQL server database toconnect. Use the drop down selection to selectthe proper one. Select the Windowsauthentication mode and the Next button.
2. If the connection is achieved, a messageindicating Connection test was successful.Click OK to go to next display. (Note: If theconnection is not displayed go back to theSQL server Management Studio and
Figure A7.3f- Verify that the tables are visible under
each database while logged in as the new user.
Figure A7.4. Step I.B.1 and I.B.1: Select Add to
add new ODBC alias.
7/27/2019 TS Loading
4/11
determine the correct name for the server instant.Type this name into the prompt box.)
3. The next display is for the destination folder forthe databases listed above. If the destination ison a network computer other than the terminalserver computer , you must enter the driveletter of the server as if you were on the server,i.e. if the drive letter of the server where SQL isinstalled is D, you will enter the D in thepath.
4. Enter a Database Login name. You can enterengineering. Select next and the building ofthe databases will begin. Once the structuresare built you will be prompted to build thetables. Select Yes and the table building will
be completed in a short time.
B. ODBC Configuration for SQL Databases:In order for the SQL databases to link to theapplication program, the ODBC DSNconfigurations will have to be set up. ODBC
DSN shall be configured as described below:
1. Configuring the ODBC DSN: OpenControl Panel, select AdministrativeTools, Data Sources-ODBC. (Note: Tosetup an x86 operating systems continueto step B.2.(Note for 64 Bit Operating systems)If setting up a 64 bit machine, load theapplication disk 2 of 2 first step II.A first.Once loaded go to the All Programs,select Instrument Forms Plus ...., andselect the BDE Database Engine. Whilein the database engine, select from the
menu bar at top, Object and at thebottom select ODBC Administrator.Continue with step B.2.)
2. Select System DSN tab.3. Select Add, next screen select SQL
Server data source.4. Create a New Data Source to SQL Server
enter the following:a. Name: INSTDATAb Description: Instrument Data
Figure A7.5 - Step I.B.4 Select Authenticity method.
Figure A7.6 - Step I.B.6 Select Authenticity method.
Figure A7.7 - Step I.B.7 Select Authenticity method.
7/27/2019 TS Loading
5/11
7/27/2019 TS Loading
6/11
3. Under Local Computer Policy, double clickComputer Configuration.
4. Double click Administrative Templates,and then double click Printers
5. Right-click Disallow installation of printersusing kernel mode drivers, and then clickProperties.
6. On the setting tab, click disable, and thenclick OK (Disable will allow the driver towork properly)
E. Microsoft SQL Remote AccessBy default Microsoft SQL server does notaccept remote connections. To enable remoteconnections proceed as follows:1. Open the SQL Server Configuration Manager.2. Expand the SQL Server Network
Configuration node and select the Protocols
for SQL or SQLExpress.3. Enable TCP/IP by right-clicking and
selecting Enable, then OK.4. Click on the SQL Server Services node and
in the right panel right-click SQLServer(Express) and select restart to restartthe service.
5. Right-click on SQL server Browser andselect start to start the Browser service if itisnt started already. This will allow you toaccess the SQL Server instance by thecomputer name.
F. Microsoft Security LoginsSetting up remote user logins must be set up to
allow remote users access to the databases.1. Open the Microsoft SQL Server
Management Studio (Express) and selectthe Security - Logins under the ObjectExplorer.
2. Right click Logins and select new login..3. For Windows Authentication select search
for object name and select one.
4. Select Server Roles and check public,dbcreator and serveradmin.
5. Select User Mapping and place a checkfor each database Map under Usermapped to this login i.e. CTSELEC,
CTSINST, CTSMAIN, CTSMECH,CTSSYS, ELECDATA, INSTDATA,LOOPDATA, LTDATA.(Note: CTSELECand CTSINST are for Facility Automationonly and LOOPDATA for Combo only.)
6. Set the Database role membership foreach Database to public.
7. Select Status and set Permission toconnect to database engine to Grant andset Login to Enabled.
II. Application Software Disk 2 of 2
A. Install the application CD, 2 of 2 at the
Terminal Server:
Figure 7.10: Enter the Data Source Name
Accessdatabase.
Figure A7.11. Select the Microsoft Access database.
7/27/2019 TS Loading
7/11
Figure A7.12 - Step II.B.2: Assign of alias
Pathshown on right if different from c-drive,
default.
1. While loading CD, a prompt appears forLicense Agreement. Confirm to proceedYes and select Next.
2. A prompt appears showing installationprocedure for software. Select next. Youcan also view this file after installation fromthe program prompt. View this file for
installing additional requirement for thesoftware, (also included in this document)
3. A prompt for user name and organizationname. Enter information and select Next.
4. A prompt that defaults to Complete. SelectNext to continue.
5. A prompt appears that directs theinstallation to the local hard drivesProgram Filesor (Program Files x86)folder and subfolder ifppro. Select Next tocontinue.
6. A prompt that identifies the Program filename for the software. Select Next to
continue.7. A prompt to confirm the installation. SelectNext to load the software.
Note: If you have a previous version of thesoftware installed, if will automatically bedeleted. No permanent database data will bedeleted, however.8. A prompt appears, select next. This
completes the application CD loading.
B. Change the Configuration File via the DatabaseEngine.
If the path shown in step II.A.5 is not the c:drive the database engine configuration filealiasas will have to be changed to the driveletter shown in step II.A.5. To change proceedas follows:
1. Select Start, Programs, Facility
Automation-Enterprise Version orInstrument Forms Plus Pro - EnterpriseVersion, Database Engine.
2. Select the Databases tab folder to viewthe Aliasas list, Figure 9.
3. High lite the following aliases and changethe path value on right to show properdriver letter entered at step 5 above for thedrive letter show in step 5 is somethingother than C. ( Note if green squareshows around alias, right click green boxand select close. This will close greenbox and allow editing of path.)
Backupbkupfilescalelec,
calibration,checkdocMaintdocMainteleccheckelec,checkout,CtsdispelecCTSdispInst,CtsdispMech,ctsdispSys,
Figure A7.13 - Step II.C.2: Assign database name
and ODBC DSN for each DSN configured in Step
I.B.
7/27/2019 TS Loading
8/11
Figure A7.13.1 - Step II.D.: Assign SQL Server
SQLQRYMODE and USERNAME.
CTSmaindataCTSmaindisp,database,Dispelec,displays,indxdata,Indxdisp
Loopdata,
loopdata,loopdisp,looprpt,looprpt,loopscr5,loopscrs,looptplt only required for the Combo package only,
LoopDwg - User assigned to point to locationof loop drawing.
lubackup,maintenance,Mechdisp,indxdata,PIDDWG - user assigned to point to a location
of the P&ID drawingsPipedisp
rsw,Sysdisptr20data,tr20disp,training
4. Users specification aliasas that areavailable for user during a session:
:backup: This alias can be setup in the userssession folder. i.e. c:\ifpsql\backup. Where thedrive letter is changed to match the terminalserver requirements.:bkupfiles: This alias contains the backuptables when a user does a Unit backup. These
tables can then be restored to another PC. Thisalias path and folder should be set up whereaccessible by the user for restoring data to theSQL tables during Restore.
:pdffiles: This alias contains the default path forcreating the pdf files created during a sessionby a user. The file area is common to all users.The application will automatically build thesubfolder structure under this alias path when apdf file format option is selected for printing.5. Select the Configuration tab to set the net
directory: Select the + to expand the tree
to show the sub-headings. Drill down to thePARADOX. Change the NET DIR pathdrive letter.
6. This completes the configuration file setup.Select Object, Exit and select Yes foreach exit prompt to save your changes.
C. Setup Database engine for ODBCconnections:From the Program list, select the Program andselect Database Engine. This will open the
display shown in Figure 10. Under theDatabase tab all of the aliasas are shown.Within these aliasas are both local aliasas andSQL ODBC aliasas.1. Starting at the top assign the DATABASE
NAME and ODBC DSN as named in StepI.B.10.
2. Set each LANGDRIVER to ascii ANSI3. Assign the SQLQRYMODE to
SERVER and USER NAME to sa.D. Select the Configuration tab and Drivers
and ODBC. Select the SQL Server and theSQLQUERYMODE as SERVER. Assignthe USER as sa.
E. Setting up the hardlock drivers:1. From the Programs Listing for -FacilityAutomation - Enterprise Version or InstrumentForms Plus Pro - Enterprise Version selectHarddriver installation. This will install thehardlock drivers onto the computer. (Note:
Must be Administrative level to install and thehardlock key plugged into the USB or printerport.)
F. Installing the Print Drivers:1. From the Programs-Facility Automation -
Enterprise Version or Instrument FormsPlus Pro - Enterprise Version selectInstall PDF Report Print Drivers. This willinstall the drivers for the terminal server.
G. Plug in the Hardlock key into the printer port
7/27/2019 TS Loading
9/11
of the server computer.(For licensed copiesfor use with File Server configurations only.)
H. Starting the Application:
You are now ready to start the application. Proceedas follows:
1. Double click the FA, Facility Automation -Enterprise Version or IFP PRO InstrumentForms Plus Pro - Enterprise Version icon tostart the application.
Note: If this is the first time, entering the software,you will be prompted to load the database tables.Select Yes to proceed with loading. This willpopulate the SQL tables with sample data andcritical setup parameters to run the application.
2. Launch file setup and configuration. Thelaunch file Mflexsql.cmd is installed from
application loading.(Figure 11) This file isconfigured to launch the application fromthe C: drive. If this is not the applicationsinstalled drive the file Mflexsql.cmd filemust be changed. It is located under the...\program files\ifppro folder or for Windows7, 64 bit operating systems ...\program files(x86)\ifppro
Note: This file may be opened with text editor i.e.Notepad.
a. Enter the drive letter that contains theapplication files or alternate drive that
has User access.(setdrvprog:=?:\progra~1) or (setdrvprog:=?:\progra~2) for Windows 7,64 bit operating systems
b. Enter the drive letter for the location ofthe Users session work files.(setdrv:=?:) The user work session files aresetup under the c:\ifpsql\ folder bydefault during the user logging onto theapplication and deleted when exitingthe application.
III. Screen Setup, Sample data loading and
default password required to enter displays
A. Setup the screen as shown in Figure 12following after loading software.
B. Sample Data: Sample data is loadedinitially.
C. Password Name: Dan and PasswordDan
IV. Loading Software Licensing.
A. The software license file will be emailed toyou after you have purchased thesoftware.
B. Installing1. Download the file to the folder
c:\program files\ifppro or ProgramFiles (x86) for 64 bit Windows 7operating systems folder.
2. Select Start run and browse to the fileand select Ok to start the loading ofthe file.
C. Respond to the prompts and at theconclusion you can start the application.
This completes the loading of the software. Ifyou have problems printing a document, referto the readme file for some trouble shootingtips.
V. Loading Software and Operating as a FileServer.
To operate the software as a file serverconfiguration, the following changes will needto be made to the alias configuration file andmflexsql.cmd file.A. Load the disk 2 application at the file
server computer. If loaded to the c-driveno changes will need to be made to theconfiguration files and the application willstart up normally.
B. Configuring a work station requires that
you set up the BDE Database enginealiasas and network files.1. Determine what drive letter used for
mapping your workstation to the fileserver.(I will use the letter Y in myexamples.)
2. From the server, open the BDEdatabase engine. Do a Saveas tosave the current configuration file andsave as ifpsql_server.cfg.
3. Reopen the active configuration file,ifpsql.cfg(located on server atnetdrive:\program
files\ifppro\idapi32" folder) or orProgram Files (x86) for 64 bitWindows 7 operating systems.
4. Change the active aliasas to point tothe work station mapped drivedetermined from step B.1 above.
5. Change the following aliasas pathdrive letter only(ie. c: to Y:) for:calelec,calibdoc,checkdoc,checkelec,checkout,*ctsdispelec,*ctsdispinst,*ct
7/27/2019 TS Loading
10/11
Figure A7.14. Mflexsql.cmd application launch file.
Set the location for the application and the Users
session files.
Figure A7.15. After initial loading and launching to the Main screen show above, right click on the menu
bar at top and uncheck Properties choice. This will remove the navigation buttons at top of display. These
are not required.
sdispmech,*ctsdispsys,*ctsmaindata,*ctsmaindisp,*database,*dispelec,*displays,*indxdata,*indxdisp,*loopdata,loopdwgs,maintdoc,maintelec,*mechdisp,*pdffiles,piddwg,*pipedisp,*rsw,*sysdisp,*tr20data,*tr20disp,traindoc,trainelec,training.(The * denotes criticalaliasas to be changed)
C. Setting the network path must also bechanged.1. In the BDE Database engine, click on
the Configuration tab, selectDrivers,Native,Paradox andchange the drive letter C: to yourmapped drive letter from B.1
D. The application loading file(Mflexsql.cmd)will need to be changed to accommodatethe work station mapped path drive letterset in B.1.1. Open Window Explorer and browse to
the location for the application
program Y:\program files\ifppro or orProgram Files (x86) for 64 bitWindows 7 operating systems)Right
click on the file and open in Notepad. Do aSaveas and save the file asMflexsql_server.cmd.
2. Reopen the mflexsql.cmd file inNotpad and make the followingchanges.
set drv:="%systemdrive%ifpsql"set drvprog:="%systemdrive%"
Add rem in front of each line ofcode:
rem set drv:="%systemdrive%ifpsql"rem set drvprog:="%systemdrive%"
enter the following new lines of code:set drv:="Y:\ifpsql"set drvprog:="Y"Where Y represents the workstationmapped drive determined in step B.1
3. Save the file and exit.E. Setting up the work station:
1. Since we have set up all of theconfiguration files from the server, allthat is left is to add a shortcut to theMflexsql.cmd file from each workstation. To do this proceed asfollows:
2. Right click you work station windowand select new. On the next screenselect new and shortcutType in the location of the item as:
"Y:\ProgramFiles\ifppro\MflexSQL.cmd"
Select Next and type in a Nameas IFPPRO Enterprise and clickfinish.
3. Once the icon is created, right click itand select Properties and enter theStart in information as follows: Startin:"Y:\Program Files\ifppro" or
7/27/2019 TS Loading
11/11
Program Files (x86) for 64 bitWindows 7 operating systems
4. To change the icon select Changeiconand browse to the location of theicon:Y:\programfiles\ifppro\shared\pfwrun32" or or
Program Files (x86) for 64 bitWindows 7 operating systems
and select the icon ifppro.ico.This completes the loading of the work stationicon. Repeating Step E for each work stationwill allow them to connect to the serversoftware.
VI. Configuring SQL Express 2008 and earlier torun from a file server with client stationsconnected via the company ethernet.A. For the SQL Express to be able to
communicate with the clients, there are a
couple of setting to make using the StudioManager and the Configuration Manager.1. SQL Configuration Manager: Select SQL
Network configuration-Protocols forSQLExpress2008" and on right panelEnable TCP/IP and Named Pipes.
2. Select SQL Services at top of panel andright click on SQLServer(SQLExpress2008) and restart.
3. If SQL Server Browser is running rightclick and restart. If not running right click,select Properties, tab Service andStart Mode. On right use drop down toselect Automatic.
4. Right click on SQL Server Browser andselect Restart
B. Load the application CD on each workstation(CD 2 of 2).1. Configure the ODBCs connections asdefined in step II.B.