question stringlengths 19 6.88k | answer stringlengths 38 33.3k |
|---|---|
Problem Statement: Can Aspen DMCplus collect without the ACO Base? | Solution: Collect is an independent CIM-IO client software like Test API and it does not require ACO Base.
By copying collect.exe and a proper file into a PC which has CIM-IO interface, collect can work on the PC and create bin files.
Keywords: DMCplus
Collect
ACO BASE
CIM-IO
References: None |
Problem Statement: How can I remove the watermark in a datasheet? | Solution: It is possible to turn off watermarks in Excel Datasheet Editor by going to Print Setup | Datasheet Options.
In the View tab, you can uncheck the options you do not want to see depending on the status of the datasheet.
Note that you can remove watermark in the Excel Datasheet Editor application and in print... |
Problem Statement: If the case-fixed value for an attribute is changed in the DataModel, how to apply the modification in an existing Workspace. | Solution: TheSolution to this problem is to specify the parameter migratecases=true in the Workspace configuration file or in the library configuration file. This parameter is only needed when the value of the case fixed flag has been changed for attributes in the data model and these attributes have been used in an ex... |
Problem Statement: Aspen DMCplus and Aspen SmartStep have been merged into Aspen DMCplus starting in version 2006.5 | Solution: In version 2006.5, theAspen DMCplus andAspen SmartStep applications were combined in the single application Aspen DMCplus.
Aspen SmartStep Simulate and SmartStep Desktop are no longer used because Aspen DMCplus Simulate and Aspen DMCplus Desktop are used instead.
The SmartStep application is activated by sett... |
Problem Statement: Controller goes into open loop on LP/QP internal error. | Solution: EPSMVPMX allows the user to select from several new solver options. And, the new solver option can be used with the DMCplus controller without Composite LP.
OPTION 8 fix the LP/QP inernal error which DMCplus Ver. 2004.2 or older can't. And, this option works with the controller without Compsosite LP.
Keywords... |
Problem Statement: Format warning (green triangle at the corner of the cell) in Datasheet generated by the Excel Datasheet Generator.
When user selects the relevant cell, an exclamation mark appears with warning description The number in this cell is formatted as text or preceded by an apostrophe. Looking at the cell c... | Solution: This is by design, and is necessary in order to write to a cell without loosing format information when generating the exported datasheet. The green triangles will not appear in the printed datasheet.
If you wish to get rid of the warning/green triangles, you can select the relevant cell, right click on the... |
Problem Statement: An application, dmcp_viewsrv.exe, using DAIS Trader continues to write to dmcp_viewsrv.out, decreasing the space available on the hard drive. A system reboot frees the disk space, however the process, continues to output to dmcp_viewsrv.out file. This | Solution: provides a work around on how to address this issue.
Solution
This issue is the result of a conflict with DCOM and the dais trader. This problem can be resolved by modifying the autostartlist.txt file that is located in <drive>\AspenTech\AC Online\sys\etc. Add the following two entries to the startup file
STD... |
Problem Statement: Getting Unknown variable on the calculations and hence not able to load the controller | Solution: Confirm there are not spaces in the variable names, replace any spaces with underscores, save CCF and reload.
Keywords: ccf, build, validate, error
References: None |
Problem Statement: How do you place a quoted string inside of a macro? | Solution: To embed a quoted string inside a macro, place two sets of single quotes (not double quotes) around the quoted string as in the following example:
macro dvstate = 'and ip_input_value = ''CLOSE'' ';
select name, ip_input_value, ip_plant_area from ip_discretedef
where ip_plant_area='A' &dvstate;
Here, the macro... |
Problem Statement: Is there an Aspen SQLplus query that will search the the source files for records defined by compquerydef for a tag name or a string? | Solution: The query attached to thisSolution searches the source files for records defined by compquerydef for a tag name or a string. The query assumes the source files are located in C:\ProgramData\AspenTech\InfoPlus.21\db21\group200\sql\; however, you can point to a different location by modifying the macro sqlfil... |
Problem Statement: An installation of the AspenTech software was proceeding and during the AspenCalc installation, a message was generated that the NobleNet Portmapper could not be started. | Solution: Check for other portmapper applications already running, particularly on a an AW / Foxboro machine, we find ISMPortMapper. When the alternate portmapper is stopped or disabled, the NobleNet Port Mapper can be started. The software installation can then be resumed.
Keywords: None
References: None |
Problem Statement: On Compiling Standard 'A0 Title.sym' symbol the error : Field LOCATION has an invalid route (See below images) is displayed. How to get rid of that? | Solution: This is because there was change made in standard library. To get rid of this error, double-click the 'location' field in the label and change the route to 'Site:Location' rather than Site:Location(1).
Keywords: Border labels, Field route, Graphic definer.
References: None |
Problem Statement: Do APC online applications require constant contact with the license server? | Solution: The APC applications checkout a license the first time it runs. The application checks for connectivity to the license server each time it run, after that. It attempts to acquire a license every 4 hours. If it cannot acquire a valid license, it begins a 10 day countdown. The countdown messages are visible on ... |
Problem Statement: User is unable to change line type of a previously created symbol in the Graphic Definer. | Solution: User will need to add Styles.sym file as a resource file for line type as instructed below:
In the Graphic Definer select Format -> Style. From the Style Dialog box, select Line (from pull-down list) for Style type.
Click Resources and add Styles.sym (in C:\Program Files\AspenTech\Aspen Zyqad 11.1\client\RAD\... |
Problem Statement: How can the user change the default unit for attributes used in Labels? | Solution: To get the an attribute field value to display in a desired unit to show, you need to ensure the desired unit is selected for the attribute in the relevant classview (used by the Label).
Load the class store and open relevant class view
Navigate to the relevant attribute and Unit field as desired
Save the azc... |
Problem Statement: When trying to manually create a new workspace in Aspen Basic Engineering using the SQL server database (refer to | Solution: ID 142043):
The following error message can be displayed Login failed for user X. Reason: The password of the account must be changed. See the screenshot below:
This error appears because the option Enforce password policy is selected, so it forces the user to follow some specific rules when creating the pa... |
Problem Statement: What is the procedure for upgrading my Zyqad class libraries and workspace from version 12.1 to 2004? | Solution: User will need to convert both the relevant class libraries and workspace with the migration tools provided.
To convert Zyqad 12.1 class libraries to Zyqad 2004 format:
In the Class Library Editor in Zyqad 2004, create a new library using File -> New. User can also choose to use the StandardModel.azcl if desi... |
Problem Statement: How do you manually change the authentication mode of SQL Express to SQL Server and Windows Authentication mode to be used with ABE Workspaces? | Solution: 1) Open the SQL Server Management Studio. To do this, click Start | All programs | Microsoft SQL Server 20XX (where XX is the version of SQL), and then click ‘SQL Server Management Studio’.
2) Right-click the server name on the top of the left hand side navigation tree, and then click on ‘Properties... |
Problem Statement: How do I change the color of my PFD items on Drawing Editor? | Solution: To change the color you will need to select the items inside your diagram using your mouse to create a selection box (Click on the screen and increase the size of the selection box as needed):
When all of your items are highlighted, click on the Expand button from the ribbon menu:
The color menu will be avail... |
Problem Statement: Controller refuses to load with the following error messages. How to troubleshoot? | Solution: If cimio_t_api returns positive results when tags are sampled against the OPC server, this error typically points to a specific invalid tag defined in the CCF.
To identify the tag in question, set LISTSZ=1 and reload the controller. If this does not work, you will need to further review KB 129119 and submit... |
Problem Statement: How can I retrieve past messages from the Advanced Process Control system? | Solution: Control messages, the same ones presented on the Production Control Web Server and found in the log files for the applications, in the app folders, are stored in the MPF System.
To retrieve these messages, go to a command / dos prompt and type the following:
mpf_manage msglist -r -o c:\messages.txt
This will ... |
Problem Statement: When trying to restore an AZBKP file using the AZ131Backup.exe program, the error message:
The log file for database 'Zy31060' is full. Back up the transaction log for the database to free up some log space. | Solution: Check where the SQL Server is writing the transaction log file to and ensure that it is not out of disk space.
Keywords: restore, azbkp, sql server
References: None |
Problem Statement: How to transfer more attribute with the Object Mapper | Solution: The Object Mapper is used to transfer data between UO object from a simulation and equipment object. The transfer is controlled with classview defined in the ClassStore. The name of these classviews starts by ObjectMapper.
It is possible to transfer additional variable by adding new attribute in an ObjectMapp... |
Problem Statement: DMCplus controllers cannot be started in APCManage. Error message DMCplus message initialization failed was found listed in the message log after <Start>.
In addition, when attempting to start manage.exe from CMD console, you receive the error message Fatal Error: Unable to open message file: C:/Pr... | Solution: Potentially, the file message.dat is inaccessible or unavailable.
Go to C:\ProgramData\Aspentech\APC\Online\cfg\ folder, check that message.dat exists and not configured as read-only.
Open APCManage console, restart the APC services by selecting 'Shutdown Advanced Control' and 'Startup Advanced Control'.
Open... |
Problem Statement: New options entered in an open enumeration are saved in the database and available in all attributes which use this enumeration. Is it possible to delete these options? | Solution: It is possible to delete new options entered in an open enumeration using the tool Enumeration Managementavailable under the menu Edit in the Explorer application.
The management of Open Enumeration is secured by a privilege. The person who wants to delete option from open enumeration needs the privilegeModif... |
Problem Statement: During use of Aspen Zyqad any potential legacy problems with the database can cause disruption to later use of aspects of older databases or packages (Explorer or Graphical). This may mean that subsequently a diagram may not open or a package will not load. The specific cause associated with this pro... | Solution: The best Integrity Check procedure is built into 2004.0.5 (2004.0 updated with Cumulative Patch 5 (CP5))
Using the database you want to check (whether this uses Oracle, SQL Server or Access) open the Aspen Zyqad Explorer and connect to the workspace. Open the Query Editor from the View menu.
Type the followin... |
Problem Statement: I simulated a heat exchanger using 2 heater blocks in Aspen Plus. How do I transfer the result to one heat exchanger in Zyqad? | Solution: Import the Aspen Plus simulation into the workspace in the Simulator Interface
Load the Object Mapper and map the streams accordingly.
Map the relevant Aspen Plus heater block to the Zyqad heat exchanger. Click Transfer. If you have heat curves data, the cold side heat curves will be populated in the Zyqad ... |
Problem Statement: How can I delete the border displayed around bitmap object in label. | Solution: Open the label with the Graphic Definer, right-click on the bitmap objet and select properties. With AZ2006, you need to unselect the option Show Border located on the Border tab. With AZ2004, the Show Border option is located on the Format tab of the properties.
Keywords: Label
Graphic Definer
References: No... |
Problem Statement: DEPW becomes different from DEP when the dependent variable is in out of serivce | Solution: This is expected behavior. DEPW is a value that sent to the engine after passing validation and calcs. It handles things differently depending on what is occurring with the variable. If the variable is out of service, then DEPW is typically set to some safe value so as not to hit any constraints (internally, ... |
Problem Statement: When 2006.5 CP2 for Advanced Process Control is applied, cimio communication maybe disrupted, particularly to the Foxboro DCS | Solution: TheSolution to this issue is to replace the cimio dll's from the installation, pre 2006.5 CP2 patch.
The dll's live in the AspenTech Shared directory.
cimio.dll
cimioauth.dll
Stop the online applications, Aspen DMCplus, Aspen IQ.
Stop the Aspen CimIO processes.
Rename the current cimio.dll and cimioauth.d... |
Problem Statement: How can I display the last day of the month for reports? | Solution: Download the function LAST_DAY attached to thisSolution and use the SQLplus query writer to save the function as a procedure in InfoPlus.21.
Given an InfoPlus.21 timestamp, the function returns the last day of the month indicated in the timestamp argument as a character string using the date format specified ... |
Problem Statement: Remote database look and behaves differently when accessed via ODBC OAM. | Solution: Manually edit the ''links.dat'' file and change the second parameter for the alias from ''ODBC'' to SETCIM. SQLplus will then treat the remote database as a native SETCIM/InfoPlus.21 database.
Example:
To change the alias ''IP21'' from using generic ODBC to SETCIM the following line in ''%SETCIM%\sql\links.da... |
Problem Statement: The async client task dies with a Dr. Watson and won't remain running. | Solution: The store file has possibly been corrupted due to an improper shutdown/startup of CIM-IO and thus cannot unbuffer properly to the async client task, causing it to die. Perform a clean start of CIM-IO and Store and Forward perSolution # 103176
Keywords: cimio_c_async.exe
store and forward
References: None |
Problem Statement: While executing an Aspen SQLplus query inserting data into an Aspen InfoPlus.21 (IP.21) database, you might receive the error message: Error writing to <tagname>: Invalid key timestamp at line <x> . How to overcome it?
Example query: INSERT INTO ATCAI(IP_TREND_VALUE, IP_TREND_TIME) VALUES (4.5, '03... | Solution: There are three possibilities that can generate this error when executing this kind of SQLplus query:
1. You are attempting to update history for data that is older than your IP.21 repository's Past Time parameter.
The Past Time parameter sets the limit on how far back in time history can be inserted or u... |
Problem Statement: How can I trap errors produced by a query and write error information to a log file? | Solution: A BEGIN / EXCEPTION /END block catches run-time errors during query execution providing a way to take corrective actions without the query aborting. If an error occurs in the code between the BEGIN and EXCEPTION statements, instead of exiting, Aspen SQLplus transfers execution to the statements located betw... |
Problem Statement: Is it possible to use Aspen SQLplus to connect to a 64-bit Oracle (or other 64-bit application)? | Solution: AlthoughSolution 134112 (which is for an engineering release of Aspen SQLplus) contains the Statement
This patch is designed to install the AspenTech SQLplus 64 bit ODBC driver version V7.3 on an InfoPlus.21 client machine.
This patch allows 64-bit applications to talk to Aspen InfoPlus.21. Aspen SQLplu... |
Problem Statement: How can I select more than 32 characters using the substring statement? | Solution: By default, the substring statement returns a maximum of 32 characters.
For example, suppose a file named test.txt contains the following line:
1234567890123456789012345678901234567890,abcdefghijklmnopqrstuvwxyz
Then, the query
select substring(1 of line between ','),
substring(2 of line between ',') from... |
Problem Statement: There is no built-in function that calculates the number of substrings in a line. However, the function below can be added to an Aspen SQLplus query to calculate the number of substrings in a comma delimited text line. | Solution: function count_substrings(x char(256))
local i int, c int;
c = 0;
for i = 1 to character_length(x) do
if substring(x from i for 1) = ',' then
c = c + 1;
end
end
return c+1;
end
Keywords:
References: None |
Problem Statement: How can I check CIM-IO Get Records status using SQLplus? | Solution: Get Records are defined by IoGetDef, therefore querying this record will give you the status of your Get Records.
In order to have a quick overview it might be better to select just the following:
SELECT NAME,IO_RECORD_PROCESSING,IO_LAST_STATUS,IO_LAST_STATUS_DESC,IO_LAST_UPDATE
FROM iOGetDef
Otherwise SELECT... |
Problem Statement: When Performing a Query on a remote database using the 'ODBC OAM' the error message
'Complex Remote Update Or Delete Requires Row Identification Field'
is received. This knowledge base article describes how to work around this error message. | Solution: This error message indicates that the ODBC OAM module is trying to perform a generic ODBC query which, although syntactically correct, fails. The work around for this is to configure the ODBC link to use database specific syntax instead of generic ODBC. A list of databases is contained in the text file '%SETC... |
Problem Statement: When performing a remote UPDATE or DELETE query for MSSQL, the error: Complex remote UPDATE or DELETE requires row identification field at line xx is received. | Solution: If you are at version 4.0, the error message might be due to a bug that is corrected in Service Pack 1. Upgrade to version 4.0.1
If you are not at version 4.0 and are receiving the error message, implement a workaround for connecting to MS SQL Server. Two syntax workarounds are available:
use local variables ... |
Problem Statement: How can I include single quotations (') in an Aspen SQL Plus query string? | Solution: In order to include single quotations (') as part of the query string they must be enclosed within a set of single quotations as demonstrated in the following examples.
Query Example 1
write ''Hello World'';
Format: write (`(`Hello World?)?);
Result: `Hello World?
Query Example 2
write ' ''Hello'' ''Wor... |
Problem Statement: How can I execute a QueryDef on a remote InfoPlus.21 server? | Solution: A way of executing a remote query would be to store it as QueryDef and not ProcedureDef. The reason for doing this is that QueryDef record can be activated on a Change Of State.
On InfoPlus.21 the field that activates the query can be updated and used as trigger for the query.
See example below:
A Query... |
Problem Statement: The CIM-IO documentation states how to start the Store and Forward (S&F) processes on Windows NT by opening a command window and executing the necessary commands. The S&F processes are stopped by closing the command window.
This | Solution: discusses how to start and stop these S&F processes through the use of an NT service. The processes belonging to an NT service persist or stay running over different NT logins. The processes run in the background - not via a command window.Solution
With the installation of CIM-IO on the NT platform, a service... |
Problem Statement: When attempting to connect to an Oracle database using a SELECT statement like this (where ''ts'' is a variable holding an IP.21 timestamp):
select caught_dt, result from NAME.ORACLEDB.GOESHERE
where caught_dt > ts
and sample_point = ''TA''
and test_code = ''RV'';
the following error can occur:
Remot... | Solution: Add code like this before the query, which instructs Oracle to accept timestamps in IP.21 format:
execute ''alter session set NLS_DATE_FORMAT = ''''DD-MON-YYYY HH24:MI:SS''''''
on remote_ora_db;
Keywords: Oracle
SQLplus
remote
database
error
1830
References: None |
Problem Statement: What is the correct format for indirect insert of a variable in Aspen InfoPlus21 database, using SQL script? | Solution: A correct SQL script has to be used in case it is required to indirectly insert a variable in Aspen InfoPlus21 database.
In case of incorrect format, an error message about not recognizing the column name will appear.
An example of correct SQL script is as below:
Keywords: Inserting variable in database
SQL ... |
Problem Statement: Note the following two queries and the example result sets. The queries only differ in that the second specifies a remote datasource, yet the results differ. Query 1, running locally on MyServer, returns the correct dataset. Query 2 runs against MyServer from a remote SQLplus client, and returns an i... | Solution: In Query 1 the ORDER BY is executed on the local system and sorts the data returned from the remote system. The default setting for an ODBC data source is to return timestamp data as character data type (to preserve the InfoPlus.21 formatting). So, the ORDER BY in the first query sorts the data by character (... |
Problem Statement: How do I produce comma-delimited files using Aspen SQLplus? | Solution: Setting the output to a file, then specifying the format of a select statement.
For example:
SET COLUMN_HEADERS 0;
SET VALUE_BETWEEN ',';
SET OUTPUT 'COMMA.TXT';
SELECT NAME,VALUE FROM ANALOGDEF;
SET OUTPUT DEFAULT;
Keywords: comma separated, comma delimited, text format
References: None |
Problem Statement: Executing a SQLPlus script will retrieve the result until the execution end of the query, sometimes you will need to ensure that the query is working properly during execution so that you can continue or cancel it on proper time, specially if the query requiere a lot of time to execute. Even when the... | Solution: to achieve this, in thisSolution we provides an example on how to pause a query, check the current result, and continue its operation using the SET OUTPUT statement and Temporary tables in Aspen SQL PLus.
Solution
The attached .sql file provides an example on how to pause a query to retrieve the name for all ... |
Problem Statement: Advanced Process Control V7.2 | Solution: The following enhancements were made to aspenONE APC in V7.2.
Product Quality
The communication layer for APC Products (CORBA/Dais) has been replaced with WCF (.NET) technology in order to improve the robustness and stability of application such as the Production Control Webserver. Dais is still available for... |
Problem Statement: Where can information be found to interpret Aspen Cim-IO error codes? | Solution: The directory C:\Program Files\AspenTech\CIM-IO\etc
contains the .def files for the available Aspen Cim-IO interfaces.
These .def files contain the messages associated with each error code generated by that interface.
Each interface has it's own Facility Number, for instance, the Facility number for the Aspen... |
Problem Statement: Consumption of token becomes 1.5 token/MV when Aspen Watch is installed in addition to DMCplus even if Aspen Watch is not monitoring DMCplus controllers. | Solution: Create AWENB entry at general section of CCF and set its value to 0. And, token consumption will be 0.5 token/MV as documented in the license agreement.
Keywords: Token
AWENB
Licensing
References: None |
Problem Statement: How to export Aspen Basic Engineering data to an XML file for Smartplant P&ID? | Solution: You must set TEFEnabled to True and Framework::Version must be set to the Installed SmartPlant Foundation (SPF) version within your workspace configuration.
For example, following enables SPF integration and declares the installed version:
TEFEnabled =True
Framework::Version = 4.3
Aspen Basic Engineering (ABE... |
Problem Statement: In the attached aspenONE V7.1 document under VMware Virtualization, it is stated that version 2 is a supported platform. Is this the ESX version, if so version 2 is several years old and we are currently at version 3.5. | Solution: AspenTech has tested VMware Workstation 6.5 and VMware Server 2.0. We have not test on VMware ESX for V7.1.
Keywords: Virtualization
ESX
VMware
References: None |
Problem Statement: What is the significance of rank 1000 for a control variable (CV) limit/external target (ET)? and when it should be used? | Solution: Rank 1000 allows implementation of soft constraints on a DMCplus controller. The steady state optimizer (SSO) in DMCplus engine performs two sets of calculations:
· The first part is feasibility check where all the CV limits/ET are checked for feasibility in increasing rank order. For more inform... |
Problem Statement: Logical condition tests involving single precision Aspen InfoPlus.21 (IP.21) variables do not work correctly under some conditions (depending on the original value in IP.21).
Here's an example script, using the IP_AnalogDef record Precision_Test, which will help you reproduce the problem:
-- ------ S... | Solution: This conflict occurs because records such as IP_AnalogDef use single precision reals, whereas SQLplus only uses double precision.
The above SQL script can be made to work correctly by changing the following two lines:
Precision_Test.ip_input_value = value;
dbvalue = Precision_Test.ip_input_value;
t... |
Problem Statement: Is it possible to break out of a FOR loop before its set number of iterations? | Solution: There are several ways to handle this.
1. Using an Error Handling Block
2. Using a nested IF statement
3. Using a WHILE statement.
4. Using a function call with a return statement.
One might think that forcing the counter to its limit or beyond its limit would cause the looping to sto... |
Problem Statement: How to put the result of a Select statement (i.e. Select_Description) into a character variable. | Solution: Here is an example query that would put the result of a Select statement (i.e. Select_Description) into a character variable:
local temp char (20);
temp = (select select_description from eng-units where OCCNUM=2);
write temp;
If you would like to capture more than one variable, you can use a FOR loop (even t... |
Problem Statement: How can Aspen SQLplus display more than 80 characters per line from ASCII files? | Solution: Specify the line length in the select Statement
For example:
SELECT line width 132 FROM 'c:\autoexec.bat'
Keywords:
References: None |
Problem Statement: How to INSERT into a record whose name is a variable. | Solution: Use a sub-query with the record name as a parameter.
I.E. To insert a value into every discrete record:
EXAMPLE #1
FOR select name from IP_DvDef do
START Record'UpdateDvDef',name
END
Query Record UpdateDvDef contents
Insert INTO &1 (TRENDTIME) Values (CURRENT_TIMESTAMP)
EXAMPLE #2
local rname record;
local ... |
Problem Statement: Technical Advisory: CIM-IO to replace Scan/21, Phoenix and Direct Connect interfaces by early 2000 | Solution: With the powerful and robust technology that is available in the latest version of our products, Aspen is supporting some of its older interfacing methods by providing a path forward to our current interface technology, CIM-IO. Aspen Tech will be retiring all current SCAN/21 interfaces when InfoPlus.21 v3.0 i... |
Problem Statement: A delay may appear when using the Aspen SQLplus SYSTEM command to check files and folders in Windows Server 2008 or Windows Vista when compared to accessing the files directly from Windows Explorer. This knowledge base article describes the cause of this delay and the re | Solution: .Solution
In Windows Vista and Windows Server 2008 a new Server Message Block file sharing protocol was released.
Server Message Blocks Protocol (SMB) is the file sharing protocol used by default on Windows-based computers. SMB 1.0 was designed for earlier Windows network OS such as Microsoft LAN Manager and ... |
Problem Statement: Aspen InfoPlus.21 can be configured as 'Linked Server' in Microsoft SQL Server. This | Solution: explains the way of executing an Aspen SQLplus query in Microsoft SQL Query Analyzer or Microsoft SQL Server Management Studio.Solution
Usually all Linked server data is accessed through 'EXECUTE' command in Microsoft SQL Server.
Following is the sample syntax for using EXECUTE command in Microsoft SQL Server... |
Problem Statement: SQLplus is not returning the output in the same order as it appears in the CROSS BY query | Solution: SQLplus does not adjust the order of the results of a query. It simply returns the results of a query in the order the data is returned from the database, by record ID, which may or may not be the same order of the script itself.
If you want to control the order of the columns, use a JOINS query (instead of C... |
Problem Statement: It sometimes becomes necessary to exit a WHILE loop if more than one condition is met. Although this feature is not documented, it is supported in SQLplus. An example of when this might be useful is when one needs to limit the maximum number of iterations in a convergence loop. | Solution: In this example, one has a WHILE loop to check convergence of a value as is common in many thermodynamic calculations. Full convergence calculations are not done here so that this example can stay as simple as possible. There are two points to notice in this script. Namely, changing the value of i to less tha... |
Problem Statement: When trying to run SQLplus v4.8 on HPUX v10.2 the following error message is received: /usr/lib/dld.sl: Can't find path for shared library:libX11.1 | Solution: Add the three additional links to the installation script in the lib directory under the Setcim root directory:
ln -s /usr/lib/Motif1.2/libXm.1 $SETCIMLIB/libXm.1
ln -s /usr/lib/X11R5/libXt.1 $SETCIMLIB/libXt.1
ln -s /usr/lib/X11R5/libX11.1 $SETCIMLIB/libX11.1
Keywords: install script
lib
shared
library
Refe... |
Problem Statement: The following Daylight Savings Time adjustment to the cimio_timezone.def file is required for Cim-IO Core running on OpenVMS (VAX or ALPHA), when the system time is changed to daylight savings (DST) or Standard Time (ST). If the Cim-IO client or server is running on OpenVMS the cimio_timezone.def fil... | Solution: Suggested procedure for adjusting cimio_timezone.def on a OpenVMS host:
1. Stop Cim-IO client and/or server.
2. Adjust the VMS system time.
3. Edit the value in the file cimio_timezone.def (usually found in the location SETCIM:[ETC] or CIMIOROOT:[ETC]) and adjust it to reflect the current of... |
Problem Statement: I have a stream that runs at certain times of the day, but will vary from day to day and I want a way to show the data from the most recent run time of the stream as a table in AspenOne Process Explorer. The data shown should be the stream's flow rate and the times should be equally incremented over ... | Solution: ThisSolution documents a method to use Aspen SQLplus in order to write stream values at four equal time intervals that update live as a stream is running and displays the quarter marks for the most recent run if the stream is inactive. For this example, suppose a stream's flow rate is stored in tag ATCAI and ... |
Problem Statement: This is a sample script to replace the now obsolete s21ascinsert utility. S21ascinsert was used by customers for this scenario: Programs external to Aspen software write ASCII files to a specified directory. The scanner detects the files, extracts the data in the files, inserts it to the database, th... | Solution: To run this utility you run the s21ascins.SQL script from sqlplus. There are three scripts.
You have to change the filepath to find the scripts or load the scripts to a record. Change data_filepath to the directory for your input files, and change the out_filepath to a temp directory.
s21ascins.SQL:
Keywords:... |
Problem Statement: How can I dump the result of a SQLplus query onto a log file? | Solution: If you need to dump the results of a SQLplus query onto a log file, you will need to use SET OUTPUT
SET OUTPUT = 'C:\Logfile.log'
This way, the output of the query instead of being displayed in the bottom windows of SQLplus Query Writer, is written onto the specified file.
Example:
SET OUTPUT = 'C:\Logfile.lo... |
Problem Statement: How to determine how a query has been started. | Solution: Aspen SQLplus has two internal functions 'ACTIVATION_RECORD' and 'ACTIVATION_FIELD', which return the current activation criteria.
The 'ACTIVATION_FIELD' only returns a value when the activation method is COS, ACTIVATION_RECORD is set on both COS and normal activation's.
Example
IF CHARACTER_LENGTH(ACTIVATIO... |
Problem Statement: How to tell if a parameter is present in a parameterized query. | Solution: Test the length of the parameter.
I.e. IF CHARACTER_LENGTH('&1') > 0 THEN
Keywords: parameter
character length
References: None |
Problem Statement: How do I check IP_ALARM_STATE with SQLplus? | Solution: If you want to check the Alarms using SQLplus you can query IP_Alarmsummary as follows:
SELECT Summary_line, *SUMMARY_LINE
FROM IP_Alarmsummary
*SUMMARY_LINE is a FIELD POINTER
Keywords: SQLplus
Alarms
References: None |
Problem Statement: The purpose of this | Solution: is to outline how to solve the problem where data coming into a Setcim or InfoPlus.21 database from a Cim-IO server running VMS is timestamped differently from the current, system time.
The symptoms of the problem are:
The system time on both the I+.21 server/Cim-IO client (NT) are current, and the timetamp o... |
Problem Statement: Error : 1114. Failed to Connect to Link IP21: Specified Driver could not be loaded due to system error 1114
当在 Aspen SQLplus 配置 ODBC OAM Connection 的时候,为什么会出现如上错误1114? | Solution: 如果系统变量没有正确的配置,那么当创建新的Oracle database的ODBC OAM Connection 的时候就会出现以下的错误讯息。
为了解决此问题,需要在系统变量 Path 中添加正确的 BIN 文件夹路径。
此问题是 ORACLE 相关的错误,而且已经记录在Oracle的文档中。
Keywords: 1114
system error
ODBC
SQL
CN-
References: None |
Problem Statement: How can I send an e-mail through Microsoft Exchange 2010 using a query. | Solution: The following query sends an important e-mail through Microsoft Exchange 2010 and attaches the file dbclock.out.
-- This query sents a simple important e-mail through Microsoft Exchange 2010
-- and attaches tsk_dbclock.out.
local objOutLook;
local itemMailOutLook;
--
-- Declare objects for Microsoft Outlo... |
Problem Statement: 在Aspen SQLPlus运行SQL脚本时出现如下错误 | Solution: 此问题是因为在算术计算中没有说明数据类型而使用本地变量。
如果本地变量没有说明数据类型,那么默认为Variant本地变量。
在SQL脚本中可以用下列语句定义变量的数据类型。
LOCAL variable_name <data_type>
Keywords: variant arithmetic failed
variant
CN-
References: None |
Problem Statement: How do I add an external task into the Aspen InfoPlus.21 Manager list of defined tasks without actually using the Aspen InfoPlus.21 Manager to do so? | Solution: You can use Aspen SQLplus to call the Aspen InfoPlus.21 utility TSK_CLIENT which can be found in the default code directory for Aspen InfoPlus.21 (<drive>:\Program Files\AspenTech\InfoPlus.21\db21\code, where <drive> is the disk drive where InfoPlus.21 is installed).
Below is an example SQL script which will ... |
Problem Statement: When trying to connect an aspen SQLplus client to an Aspen InfoPlus.21 server, the following error messages may sometimes appear:
Error: Unable to get client user context
Error: Unable to access a secured SQLplus server due to incompatible SQLplus client! | Solution: The problem is that the SQLplus server task is unable to find out who you are logged in as. Usually it relates to Win9x client PC's that do not use secure login or clients that are not on a (trusted) Windows domain. The problem has at its core Windows authentication problems. The SQLplus server task at the In... |
Problem Statement: There may be situation in which you want to retrieve information on what machines are connecting to the Aspen InfoPlus.21 database using Aspen InfoPlus.21 Administrator, Aspen Process Explorer, Aspen SQLplus Query Writer, etc. This | Solution: aims to provide an example of how an Aspen SQLplus script can be used to retrieve the machines that are connected.Solution
There are a few important points to note.
1. The account used to run the Aspen SQLplus script must have permission to Windows Management Instrumentation (WMI).
2. The WMI vers... |
Problem Statement: How can I connect my SQLplus Query Writer tool to my Setcim or IP-X on an Alpha via ODBC but have it be read-only? | Solution: To Change An Existing Service to Read-only:
Login to Alpha
Type UCX to enter UCX management tool.
Type show services to see existing services. Find the SQL service (something like SQLP10014, SQLPportnumber ,SQLPxxxxx).
Disable the current SQL service by typing disable service SQLPxxxxx
Change the command file... |
Problem Statement: This Knowledge Base article describes how to construct a loop in Aspen SQLplus which loops through the elements in descending order. For example, instead of looping from 1 to 10 (ascending order), loop in descending order -- from 10 down to 1. | Solution: Below are two Aspen SQLplus code examples which illustrate how to accomplish this:
LOCAL x INTEGER;
LOCAL y INTEGER;
FOR x = 1 to 10 DO
y = 10 - x;
WRITE y;
END
In the above example, the FOR LOOP is still processing in ascending sequence (the x variable). However, the y variable can be used as the descending... |
Problem Statement: When I attempt to include the Microsoft Excel 12.0 object library in SQLPlus (View -> | Solution: 117590).
Solution
In order to successfully reference Microsoft Excel 12.0 Object Library, it is necessary that Microsoft Office 2007 has been installed on the InfoPlus.21 Server as well as the workstation running the Client software.
The reason why it is possible to use the library in Process Explorer but not... |
Problem Statement: Why can't I use the value of a MACRO definition immediately after defining it? | Solution: SQLplus requires a statement between the MACRO definition and its use. This statement can be anything including a null statement (;).
For Example, the following does not work:
MACRO TestMacro='RC345';
'&TestMacro'->Value=10;
The problem is that SQLplus has read the next token after the ; before it has exec... |
Problem Statement: Why does SQLPlus return only 99 columns when using the Cross By query? | Solution: There is a limit on the number of columns in a cross query. The default for this limit is 100 but a different Value can be specified with a FIRST clause after the BY.
Example:
Select ts, max(value) by name first 200 from history
Where name in (select name from ip_analogdef)
Group By ts;
Keywords: column
Fi... |
Problem Statement: A user is trying to create an event from an Aspen SQLplus script using 'e21_chg_key' and 'e21_rec_evnt' commands but SQLplus does not seem to recognize these commands.
This KB article shows a couple of methods to create an event in Aspen Event.21. | Solution: There are two command line programs, e21_chg_keys.exe and e21_rec_event.exe, that can be used to accomplish that. They are located at:
Program Files\AspenTech\InfoPlus.21\c21\e21\server\e21_chg_keys.exe
Program Files\AspenTech\InfoPlus.21\c21\e21\server\e21_rec_event.exe
But some users do not like these .... |
Problem Statement: Aspen Process Controller (APC) Online fails to install with a 1722 error on Windows Server 2008 when Firewall is disabled | Solution: Part of the APC Online install is to open ports in the Windows Firewall. If the Firewall is disabled during the install, this part of the install fails with a 1722 error.
The Windows Firewall must not be disabled during the install process.
Keywords: None
References: None |
Problem Statement: What files are required when I am asked to submit my workspace libraries to reproduce an issue? What files are required by AspenTech Support to reproduce my issue? | Solution: To reproduce the issue, we need:
1. Workspace libraries
2.Configuration file
3. Backup of the workspace
Workspace Libraries
The workspace libraries are found on your server machine at the location below:
..\\AspenZyqadServer\AspenZyqadxx.x\WorkspaceLibraries.
The best thing would be to zip up your Workspacesl... |
Problem Statement: How to access the flow of a specific component in a datasheet or label. | Solution: The composite view route linked to the classview attribute must be similar to the following one:
MaterialPorts[Name=Inlet].Flow.BulkFlow.Components.MoleFraction[Name=Water]
The component name which is case sensitive is specified as condition at the end of the route.
An azci file including an example is attach... |
Problem Statement: When trying to connect the SQLplus Query Writer Tool on the PC or the SQLplus Query Writer for Motif on the Setcim server to the Oracle database, this error is received:
Failed to connect to link <link name>:
Error while trying to retrieve text for error: ORA-12203. | Solution: The SQLplus 4.8 User's Manual starting on page 2-3 describes the complete installation and configuration required to run SQLplus. Page 2-10 discusses Enabling Oracle Access. Basically, SQLplus requires Oracle logical names to be defined before it can access the Oracle database. These logical names are set up ... |
Problem Statement: If an SQLplus client is attempting to connect to an unresponsive or powered down SQLplus server, the client can take a (seemingly) long time to return a no connect error. However, it is possible to minimize the timeout period by adjusting TCP/IP registry settings.
The following Tech Tip provides dire... | Solution: The timeout period for connecting either the Query Writer or Desktop ODBC to an SQLplus server is partially controlled by the registry setting TcpMaxConnectRetransmissions. This parameter specifies the number of times the server will attempt to retransmit a connection acknowledgement before aborting the conne... |
Problem Statement: What Aspen InfoPlus.21 tasks are the ProcedureDef records run on?
Are these records run by a single Aspen InfoPlus.21 task? | Solution: The Aspen SQLplus product uses external TSK_IQ tasks (i.e. tasks that start an occurrence of the C:\Program Files\AspenTech\InfoPlus.21\db21\code\iqtask.exe executable) to run queries and procedures.
Stored Procedures are always executed on the same task as the query that calls them. For example, if a QueryDe... |
Problem Statement: How to find an InfoPlus.21 record's folder and the various sequence of parent folders. | Solution: This example will return a string with the name of the record and the folder structure.
Function FolderTree(n1 record)
local tmp string;
tmp = '/' || n1;
n1 = (SELECT name FROM Folderdef WHERE record_name = n1);
WHILE n1 IS NOT NULL DO
tmp = '/' || n1->name || tmp ;
n1 = (SELECT FOLDER_PARENT FROM Folderdef... |
Problem Statement: Is there a way to use SQLplus, either in the Query Writer Tool or via ODBC, to connect to an Excel spreadsheet while the spreadsheet is open and avoid this error:
failed to connect to link....it is already opened exclusively by another user or you need permission to view its data... | Solution: Make the Excel Workbook shared. To do this:
1. Open the workbook in Excel.
2. Selected Tools/Share Workbook... from the menu.
3. Check the Allow changes by more than one user at the same time box.
4. Click OK.
SQLplus will them be able to read the spreadsheet even if it is open by some... |
Problem Statement: Can parameters be passed via the IQ or IQNP commands? | Solution: Yes, they are passed just like standard DOS parameters to a *.bat file. See the following example:
Create a file C:\temp\query1.sql that contains:
select &1, ip_description from &2;
Use this command in a DOS box:
C:\>C:\Program Files\AspenTech\InfoPlus.21\db21\code\iq.exe C:\temp\query1.sql name atcai
returns... |
Problem Statement: Is it possible to subtract a large number of days from a timestamp value? | Solution: You can subtract (or add) values from a timestamp in SQLplus by subtracting the value in 1/10 second intervals. So to subtract 1 day this would be 1*24*60*600 (1 day * 24 hours * 60 minutes * 600 tenths seconds). For example:
local dayvalue int;
local t1 timestamp;
t1 = '01-Mar-14 10:25:30.1';
dayvalue = 35... |
Problem Statement: When executing an SQL script, the following error messages may appear:
Invalid TIMESTAMP value
YEAR field out of range when converting CHARACTER to TIMESTAMP
Invalid timestamp <timestamp>, check format is YYYY-MM-DD HH:MM:SS and numbers are in range
All of these error messages indicate a problem with... | Solution: Check on the version of Aspen SQLplus used. ISO timestamp formats are only supported in v6.0 and above. A query using ISO timestamp being executed on a pre-v6.0, will result in error messages.
Ensure that Aspen InfoPlus.21 database and the SQL script are configured with the same time setting. To check the tim... |
Problem Statement: The EXECUTE and EXEC commands allow you to execute queries on remote nodes. The remote query appears in single quotes following the EXECUTE or EXEC command. If the remote query is long or is complex, it can be difficult to handle in the Aspen SQLplus query writer.
This | Solution: describes how to work around this problem.Solution
Knowledge base article 138104 describes how to split a long EXECUTE command over several lines.
You can also place the command into a text file and read the query from the file as follows:
1) Save the query in a text file, for example C:\Temp\MyQuery.txt
2) U... |
Problem Statement: How can I recover an automated Aspen SQLplus report that has been deleted? | Solution: When a Aspen SQLplus report is deleted via the web interface then the record that is associated with in the Aspen InfoPlus.21 database definition record SQLReportDef will be deleted. However the XML file associated with the report is still available in the folder Documents and Settings\All Users\Application D... |
Problem Statement: When you run a query using the Aspen SQLplus Query writer, the default timeout value for the query is 180 seconds; A however, an external task like TSK_IQ1 executing a query defined by QueryDef or CompQueryDef records, by default has no timeout.A This article explains how to add a timeout parameter t... | Solution: Using the Aspen InfoPlus.21 Manager, modify the command line parameters field for the IQ task (TSK_IQ1, for example) to add the switch /t=nn, where nn is the timeout in seconds.A
This switch sets the timeout for all queries processed by the IQ task.A If other query records require a different timeout value, y... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.