MobiLink SQL Passthrough. A whitepaper from Sybase ianywhere Author: Joshua Savill, Product Manager Date: October 17 th, 2008

Size: px
Start display at page:

Download "MobiLink SQL Passthrough. A whitepaper from Sybase ianywhere Author: Joshua Savill, Product Manager Date: October 17 th, 2008"

Transcription

1 MobiLink SQL Passthrough A whitepaper from Sybase ianywhere Author: Joshua Savill, Product Manager Date: October 17 th, 2008 This whitepaper was written in the context of SQL Anywhere 11.

2 CONTENTS Introduction 3 Creating SQL Passthrough Scripts 3 Creating SQL Passthrough Entries for Remote Databases 4 Downloading and Executing SQL Passthrough Scripts 4 Manual Execution of SQL Passthrough Scripts at the Remote Database 4 Automatic Execution of SQL Passthrough Scripts at the Remote Database 5 Capturing and Reviewing Script Results 5 Repairing Script Executions that cause Errors in the Remote Databases 6 Script Administration on the Consolidated Database 6 MobiLink Server Verbosity for SQL Passthrough 6 Deleting a SQL Passthrough Script 7 Deleting a SQL Passthrough Entry 7 Deleting SQL Passthrough Repair Information 7 Demo Mobilizing Demo Database to an Empty Remote Database 7 Creating the SQL Anywhere Consolidated Database 8 Creating the SQL Anywhere Remote Database 8 Configuring SQL Passthrough in the Consolidated Database 8 Verify Creation of the SQL Passthrough Scripts in the Consolidated Database 11 Synchronizing the Remote Database 12 Verifying the Execution of SQL Passthrough Scripts 14 Steps to Run the Demo 14 Demo Handling Errors during Execution of SQL Passthrough Scripts 14 Creating the SQL Anywhere Consolidated Database 14 Creating the SQL Anywhere Remote Databases 15 Remote Database 1 15 Remote Database 2 15 Configuring SQL Passthrough in the Consolidated Database 16 Synchronizing the Remote Databases 16 Configuring SQL Passthrough Repair Script in the Consolidated Database 18 Steps to Run the Demo 19 Summary 20 FIGURES Figure 1 SQL Passthrough Script in the ml_passthrough_script Table Figure 2 SQL Passthrough Entries in the ml_passthrough Table Figure 3 - SQL Passthrough Status on the Remote Database Figure 4 SQL Passthrough Scripts on the Remote Database Figure 5 SQL Passthrough Progress on the Remote Database Figure 6 SQL Passthrough Script Results Figure 7 MobiLink Client Failure due to Failed Script Execution Figure 8 SQL Passthrough Status in Remote Database Figure 9 SQL Passthrough Status in the Consolidated Database Figure 10 SQL Passthrough Status in Remote Database 1 after Execution of Repair Script Figure 11 SQL Passthrough Status in Consolidated Database after Execution of Repair Script... 19

3 INTRODUCTION The new SQL Passthrough feature provides the ability for powerful and robust administration of the remote databases in a MobiLink synchronization environment. SQL Passthrough gives administrators the ability to download scripts of SQL statements from a consolidated database to one or more remote databases, and have those SQL statements execute on the remotes at an appropriate time. Scripts are guaranteed to be executed on the remotes in a predefined order that is specified at script creation time. Provided with the SQL Passthrough feature is the ability to monitor the status of script execution and repair scripts that failed to execute on the remote databases. CREATING SQL PASSTHROUGH SCRIPTS SQL Passthrough scripts are created in the consolidated database and downloaded to the remote databases during synchronization. New SQL Passthrough scripts are created using the ml_add_passthrough_script procedure and stored in the ml_passthrough_script table in the consolidated database. When calling the ml_add_passthrough_script procedure the following parameters must be provided: script name, flags, affected publications, script content, and description. The script name parameter is used to identify the SQL Passthrough script. This script name must be non-null and unique. The flags parameter indicates how the SQL Passthrough script is executed on the remote database. The flag can be one or a combination of the options: manual, exclusive, and schema_diff. The options have the following meanings: Manual indicates the script may only run with manual execution on the remote database. By default, all scripts execute automatically unless manual is specified. Exclusive indicates the script may only run automatically at the end of a synchronization if exclusive locks are obtained on all tables involved in the synchronization. This option only applies to SQL Anywhere remote databases and requires an affected publication to be defined. Schema_diff indicates the script will run in schema-diffing mode. In schema-diffing mode, the database schema is altered to match the schema described in the script. For example, a create statement for an existing table is treated as an alter statement. This only applies to scripts run on UltraLite databases. More than one flag option can be specified using a semicolon-separated string. For example manual;exclusive. The default flag when NULL is specified is equivalent to an empty string, thereby implying automatic execution. The affected publications parameter is a comma-separated list of publications that must have no operations to upload before the script is executed. The script is only executed automatically at the end of synchronization when all the publications in the affected publications list are synchronized. When the script contains alter table statements, all publications that contain the tables being altered should be included in the affected publications, except for download-only publications. This ensures that these publications have no operations waiting to be uploaded when the tables are altered. Failing to do this can result in the remote database being unable to synchronize after the script is applied. The affected publications list can be NULL, meaning no publications need to be synchronized before the script is executed. The affected publications list is ignore by UltraLite remotes. The script content parameter is a collection of SQL statements that are to be executed at the remote database. The script content supplied for the SQL Passthrough script cannot be NULL. The script content is limited to the size of a TEXT data type for SQL Anywhere and Microsoft SQL Server consolidated databases. For ASE the script content is limited to a VARCHAR data type of For 3

4 IBM DB2 UDB the script content is limited to a VARCHAR data type of 4000 and for Oracle the script content is limited to the size of a CLOB. With SQL Anywhere remotes, the script content must have proper syntax that would apply for any SQL statement that would normally exist in a BEGIN END block. For UltraLite remotes, the SQL statements must be separated by the word go and each statement must appear on an individual line. The description parameter provides the ability to add additional textual information regarding the SQL Passthrough script. The description can be NULL. CREATING SQL PASSTHROUGH ENTRIES FOR REMOTE DATABASES When a SQL Passthrough script is created in the consolidated database there needs to be an association with a remote database to which the script will be downloaded. The ml_add_passthrough procedure is used to define which remote database or databases will download a given script. This passthrough association is stored in the ml_passthrough table on the consolidated database. When calling the ml_add_passthrough procedure the following parameters must be provided: remote ID, script name, and run order. The remote ID parameter specifies the remote database that is to receive the script. The remote ID must match an existing remote ID in the ml_database table. If NULL is supplied for the remote ID, the script will be applied to all remotes that exist in the ml_database table. The script name parameter specifies the script to download to the remote database. The script name must be valid and exist in the ml_passthrough_script table. The run order parameter determines the order in which to apply the scripts at the remote database. Scripts are always applied in order by the run order. The run order must be a non-negative integer. The run order is automatically determined by the following operations if NULL is provided: 1. If remote ID is the value is the maximum value of the run order column in the ml_passthrough table plus If remote ID is not the run order is the maximum value of the run order column for the given remote ID in the ml_passthrough table plus 10. If a row in the ml_passthrough table already exists for a given remote ID and run order, the ml_add_passthrough procedure updates the row in the ml_passthrough table with the given script name. DOWNLOADING AND EXECUTING SQL PASSTHROUGH SCRIPTS SQL Passthrough scripts are automatically downloaded to the remote database during synchronization if the criteria defined in the ml_passthrough table are met by the remote database. Scripts are not downloaded during file-based synchronization, when a ping from the remote is performed on the MobiLink Server, or when a download has been automatically restarted. With SQL Anywhere remote databases, the SQL Passthrough scripts are stored in the dbo.sync_passthrough_script table. For UltraLite remotes, scripts are stored in the syssql table. SQL Passthrough scripts can either be executed automatically or manually based on the definition of the script. All script executions are based on run order. For SQL Anywhere remote databases, all scripts are executed with DBA authority under the DBO account. This means the database object owner must be specified when referencing, creating or altering database objects. For example, DBA.t1 must be specified instead of just t1. MANUAL EXECUTION OF SQL PASSTHROUGH SCRIPTS AT THE REMOTE DATABASE SQL Passthrough scripts can be manually executed using the sync_get_next_passthrough_script and sync_execute_next_passthrough_script functions. 4

5 The sync_get_next_passthrough_script function returns the run order of the next script to be executed, or NULL if there are no further scripts to be executed. NULL is also be generated if an error occurred during the execution of the last script and no instructions on how to proceed with the error have been received from the consolidated database. The sync_execute_next_passthrough_script function executes the next script and updates the progress status information in the remote database that is to be uploaded to the consolidated database on the next synchronization. No script is executed if the last script returned an error and no instructions on how to proceed with the error have been received from the consolidated database. If a script is executed, the run order of the script is returned. If no script is executed, NULL is returned. For UltraLite remotes, ESQL API methods, C++ methods,.net methods, and Pod interfaces are available for manual execution of SQL Passthrough scripts. AUTOMATIC EXECUTION OF SQL PASSTHROUGH SCRIPTS AT THE REMOTE DATABASE With SQL Anywhere remote databases, automatic execution of SQL Passthrough scripts is attempted at the end of each synchronization. The available scripts are ordered by run order and execute individually until all scripts have executed, a script fails, or a script is reached that cannot be executed automatically. A script cannot be automatically executed if any of the following are true: 1. The manual flag is specified for the script. 2. The script has an affected publications value set and a. No upload was performed, or b. The upload failed, or c. One or more publications in the affected publications list were not synchronized, or d. Adequate table locks are not obtained to allow the script to execute. At the beginning of a synchronization, the MobiLink client may choose to obtain locks on the synchronizing tables that are more restrictive than those requested using the LockTables extended option in order to ensure that scripts can be executed at the end of the synchronization. For example, if LockTables is set to shared but the next script available for execution requires exclusive locks, then exclusive locks may be obtained. For UltraLite remotes, scripts that are set to run automatically run the next time the database is started. This can be prevented by setting the dont_run_scripts option in the UltraLite database. CAPTURING AND REVIEWING SCRIPT RESULTS For SQL Anywhere remote databases, the results of executed SQL Passthrough scripts are stored in the dbo.sync_passthrough_status table. The results provide the time at the remote database when the script was executed and an indication of success or the reported error. If an error is reported during execution of the script, the SQL code is stored with the text of the message. For UltraLite remotes, results are stored in the syssql table. The results provide the time at the remote database when the script was executed and an indication of success or the reported error. If an error is reported during execution of the script, the SQL code, line number in the script that failed, and the list of error parameters is provided. All remote databases upload the results of any scripts that have executed as part of each synchronization session. The MobiLink Server stores the uploaded results in the ml_passthrough_status table in the consolidated database. This table can be monitored to determine the success of all SQL Passthrough scripts that are distributed in the MobiLink synchronization environment. 5

6 REPAIRING SCRIPT EXECUTIONS THAT CAUSE ERRORS IN THE REMOTE DATABASES SQL Passthrough script execution status is stored in the ml_passthrough_status table. If any errors occur during script execution, manual intervention is required to resolve the error. Any remote experiencing a script execution error will not be able to execute any script until intervention is complete. Failure of a SQL Passthrough script can be repaired using the ml_add_passthrough_repair procedure. The ml_add_passthrough_repair procedure is used to define actions to take when a specific error code is encounter during execution of a specific script. SQL Passthrough repair information is stored in the ml_passthrough_repair table. The SQL Passthrough scripts used to repair errors in the remote database are stored in the ml_passthrough_script table. When calling the ml_add_passthrough_repair procedure, the following parameters must be provided: failed script name, error code, new script name, and action. When a remote database reports a failed script name and error code, the script name and error code are compared to entries stored in the ml_passthrough_repair table during the next synchronization session. If the failed script name and error code reported by the remote database matches an entry in the ml_passthrough_repair table, then the action and new script name values in the table determine how the remote should handle the error. The action can be defined as one of the following: R (Replace) indicates the failed script should be replaced with the new script specified by the new script name parameter. The new script will be run on the remote database. The failed script can be rerun by setting the new script name to be the same as the failed script name. P (Purge) indicates the remote database should discard all scripts that it has received and continue executing scripts normally after the purge of all scripts is complete. S (Skip) indicates the remote database should ignore the error and continue executing scripts as if the failed script succeeded. H (Halt) indicates the remote database should not execute any more scripts until it receives further instructions. The new script name must be a NULL value, unless the action is R. If R is the action, then a new script name must be provided and the script must already exist in the ml_passthrough_script table. Actions generated by the ml_passthrough_repair table are downloaded to the remote during the synchronization session where it uploads the error, or in a subsequent synchronization session. SCRIPT ADMINISTRATION ON THE CONSOLIDATED DATABASE SQL Passthrough offers additional features and functionality for the management and execution of scripts. These features and functionality are listed below. MOBILINK SERVER VERBOSITY FOR SQL PASSTHROUGH The MobiLink Server can be enabled to provide verbose logging to the console window, or direct to output using the o option, by setting the following command line option when the MobiLink Server is started: mlsrv11 -sl java ( -DMLVerbosePassthrough=1 ) This option negatively impacts the performance of the MobiLink Server and should not be used in a production environment. 6

7 DELETING A SQL PASSTHROUGH SCRIPT The ml_delete_passthrough_script procedure removes a SQL Passthrough script from the ml_passthrough_script table. When calling the ml_delete_passthrough_script procedure the script name parameter must be provided. The script name parameter identifies the script to be removed from the ml_passthrough_script table. The script is removed if and only if it is not referenced by any rows in the ml_passthrough table or ml_passthrough_repair table. DELETING A SQL PASSTHROUGH ENTRY The ml_delete_passthrough procedure removes a SQL Passthrough entry from the ml_passthrough table. When calling the ml_delete_passthrough procedure, the following parameters must be provided: remote ID, script name, and run order. The remote ID specifies which remote to remove the ml_passthrough entries from. If the remote ID is NULL, all entries for the script name are removed from the ml_passthrough table. The script name specifies which script will be removed from the ml_passthrough table. The script name provided must not be NULL. If the run order is NULL, then all rows in the ml_passthrough table are removed for the corresponding remote ID and script name, regardless of the run order. Removing the ml_passthrough entry for a script does not remove it from any remote database that has already received it. Remotes that have already received the script will execute it regardless of whether the ml_passthrough entry has been removed. DELETING SQL PASSTHROUGH REPAIR INFORMATION The ml_delete_passthrough_repair procedure removes SQL Passthrough repair information from the ml_passthrough_repair table. When calling the ml_delete_passthrough_repair procedure the following parameters must be provided: failed script name, and error code. The failed script name is removed from the ml_passthrough_repair table and cannot be NULL. If the error code is NULL, then all rows in the ml_passthrough_repair table are removed for the corresponding failed script name. DEMO MOBILIZING DEMO DATABASE TO AN EMPTY REMOTE DATABASE This demonstration of SQL Passthrough makes use of the demo database provided with SQL Anywhere 11. The demonstration creates a new version of the demo database, to be used as the consolidated database, by calling the mkdemo.sql file stored in the %SQLANY11%\Scripts directory of the SQL Anywhere 11 installation. The remote database is created as a shell with a single Temp_Table table used for the purpose of synchronization. Publication pub1 contains table Temp_Table and MobiLink user rem100 is subscribed to publication pub1. During the first synchronization, SQL Passthrough scripts are downloaded to the remote database. The scripts are executed automatically to set up synchronization of 4 tables of the demo database: GROUPO.Customers, GROUPO.Products, GROUPO.SalesOrderItems, and GROUPO.SalesOrders. These 4 tables are created in the remote database, with the appropriate users and domain definitions. A new publication pub2 is created containing these 4 tables and a subscription is created for user rem100 to pub2. MobiLink synchronization is configured for the 4 tables listed above in the consolidated database. The 4 tables are modified to add a last_modified column of default current timestamp for timestamp based synchronization. Each table has a download_cursor, download_delete_cursor, upload_insert, 7

8 upload_update, and upload_delete table synchronization scripts. For simplicity, there is no conflict resolution defined in the synchronization scripts. During the first synchronization of publication pub2, a SQL Passthrough script is executed to clean up the shell Temp_Table table and all the publication pub1 definitions. This leaves only publication pub2 in the remote database and deploys a fully functional synchronizing system. All files for the demo can be found on the Sybase ianywhere website here: CREATING THE SQL ANYWHERE CONSOLIDATED DATABASE The SQL Anywhere consolidated database is created by executing the setup.bat file found in the \SQLPassThrough_EmptyRemote\cons directory. Executing the setup.bat file will: Initialize the SQL Anywhere consolidated database demo.db. Create a user DSN demo_cons with connection parameters for the demo database. Start the demo database on a database server. Execute the syncsa.sql script against the demo database. Execute the mkdemo.sql script against the demo database. Read the consolidated database schema into the demo database. The consolidated database schema is located in cons_schema.sql and modify_cons_schema.sql files found in the \SQLPassThrough_EmptyRemote\cons directory. Start the MobiLink Server and connect it to the consolidated database. The mkdemo.sql script is located in the %SQLANY11%\Scripts directory and contains a majority of the consolidated database schema. The cons_schema.sql and modify_cons_schema.sql scripts contain modifications and additions to the demo database schema required for MobiLink synchronization of the shell database. The SQL Anywhere consolidated database needs to be configured for synchronization of the 4 tables: GROUPO.Customers, GROUPO.Products, GROUPO.SalesOrderItems, and GROUPO.SalesOrders. This requires an addition of a last_modified column to each table, creation of shadow tables to handle deleted rows in the consolidated database and creation of various table scripts to handle uploads and downloads. The modify_cons_schema.sql script performs these functions. CREATING THE SQL ANYWHERE REMOTE DATABASE The SQL Anywhere remote database is created by executing the setup.bat file found in the \SQLPassThrough_EmptyRemote\rem directory. Executing the setup.bat file will: Initialize the SQL Anywhere remote database MLrem.db. Create a user DSN demo_rem with connection parameters for the MLrem database. Start the MLrem database on a database server. Execute the rem_schema.sql file found in the \SQLPassThrough_EmptyRemote\rem directory to create the remote database schema in the MLrem database. Start the MobiLink client to complete an initial synchronization with the MobiLink Server. The rem_schema.sql script contains the necessary information to create the shell database and configure MobiLink synchronization. The first synchronization uses SQL Passthrough to configure MobiLink synchronization for the demo database. The initial synchronization performed here adds the remote database information to the ml_database table in the consolidated database. This is necessary before SQL Passthrough scripts can be created and scheduled for execution on this remote. CONFIGURING SQL PASSTHROUGH IN THE CONSOLIDATED DATABASE The SQL Passthrough file defines 5 SQL Passthrough scripts: create_users_and_domains, create_tables_and_schema, create_data_publication, create_data_subscription, and clean_up_remote_schema. The SQL Passthrough scripts are created by calling the ml_add_passthrough_script procedure. 8

9 The first 4 SQL Passthrough scripts configure the remote database users, create the remote database tables, create publication pub2, and create the synchronization subscription. The affected publications list for the first 4 SQL Passthrough scripts is NULL, meaning no publication needs to be synchronized before the scripts will execute. The SQL Passthrough scripts are defined as follows: /* * Setup Passthrough Scripts * */ CALL ml_add_passthrough_script ( create_users_and_domains, // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // Create groups, user IDs and grant user permissions // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GRANT CONNECT, GROUP, RESOURCE TO "GROUPO";, This creates the users and the domains for the remote database schema CALL ml_add_passthrough_script ( create_tables_and_schema, // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // Create tables and grant permissions // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CREATE TABLE GROUPO.Customers ( ID integer NOT NULL default autoincrement, Surname person_name_t NOT NULL, GivenName person_name_t NOT NULL, Street street_t NOT NULL, City city_t NOT NULL, State state_t NULL, Country country_t NULL, PostalCode postal_code_t NULL, Phone phone_number_t NOT NULL, CompanyName company_name_t NULL, CONSTRAINT CustomersKey PRIMARY KEY (ID), This creates the tables on the remote database 9

10 CALL ml_add_passthrough_script ( create_data_publication, CREATE PUBLICATION GROUPO.pub2 ( TABLE GROUPO.Customers, TABLE GROUPO.SalesOrders, TABLE GROUPO.SalesOrderItems, TABLE GROUPO.Products, This is to create publication pub2 with the 4 tables to be synchronized CALL ml_add_passthrough_script ( create_data_subscription, CREATE SYNCHRONIZATION SUBSCRIPTION TO GROUPO.pub2 FOR rem100 OPTIONS ScriptVersion=demo_v2;, This is to create synchronization subscription to pub2 for the remote user The last SQL Passthrough script cleans up the shell database by removing the Temp_Table table and publication pub1. After this script has executed, the only remaining publication will be pub2, and MobiLink synchronization will be configured in the remote database. The affected publications list for the last SQL Passthrough script contains pub2. This SQL Passthrough script only executes when publication pub2 is synchronized. The SQL Passthrough script is defined as follows: CALL ml_add_passthrough_script ( clean_up_remote_schema, pub2, DROP SYNCHRONIZATION SUBSCRIPTION TO DBA.pub1 FOR rem100; DROP PUBLICATION DBA.pub1; DROP TABLE DBA.Temp_Table;, This cleans up the initial database schema in the remote 10

11 The ml_add_passthrough procedure is used to associate a SQL Passthrough script with a remote database where it will be downloaded and executed. All 5 SQL Passthrough scripts are designed to be executed on all of the remote databases and are associated as follows: /* * Add the Passthrough Scripts * */ CALL ml_add_passthrough ( create_users_and_domains, 10 CALL ml_add_passthrough ( create_tables_and_schema, 20 CALL ml_add_passthrough ( create_data_publication, 30 CALL ml_add_passthrough ( create_data_subscription, 40 CALL ml_add_passthrough ( clean_up_remote_schema, 50 This is configured by executing the passthrough.bat file located in the \SQLPassThrough_EmptyRemote\cons directory. To improve performance, the MobiLink Server does not enable SQL Passthrough handling until a script is first added to the ml_passthrough_script table. The MobiLink Server queries this table at regular intervals waiting for a script to be added. When the following message appears in the MobiLink console window, the SQL Passthrough scripts have been read by the MobiLink Server and are ready to download to the remote databases: I :26:01. <Main> Server passthrough support has been enabled. VERIFY CREATION OF THE SQL PASSTHROUGH SCRIPTS IN THE CONSOLIDATED DATABASE In the SQL Anywhere consolidated database, SQL Passthrough scripts can be viewed in the ml_passthrough_script table. Here is the ml_passthrough_script table in Interactive SQL: 11

12 Figure 1 SQL Passthrough Script in the ml_passthrough_script Table The SQL Passthrough entries can be viewed in the ml_passthrough table. Here is the ml_passthrough table in Interactive SQL: Figure 2 SQL Passthrough Entries in the ml_passthrough Table SYNCHRONIZING THE REMOTE DATABASE With SQL Passthrough configured in the consolidated database, the remote database needs to be synchronized to download and execute the scripts. To synchronize the remote database, run the sync_pub1.bat file located in the \SQLPassThrough_EmptyRemote\rem directory. During this synchronization all SQL Passthrough scripts with NULL affected publications lists (create_users_and_domains, create_tables_and_schema, create_data_publication, and create_data_subscription) are executed on the remote database. After the execution of the SQL Passthrough script with NULL affected publications lists, a new publication pub2 exists in the remote database. The status of the execution of the SQL Passthrough scripts can be determined by viewing the dbo.sync_passthrough_status table on the remote database. This information is synchronized back to the consolidated database during the next synchronization. 12

13 Figure 3 - SQL Passthrough Status on the Remote Database The dbo.sync_passthrough_script table contains the scripts that were executed on the remote database. The dbo.sync_passthrough_progress table contains the run order of the last script successfully executed, the run order of the last script attempted, and the time (at the consolidated database) when scripts were last downloaded. Figure 4 SQL Passthrough Scripts on the Remote Database Figure 5 SQL Passthrough Progress on the Remote Database After the first synchronization of publication pub2, the final SQL Passthrough script clean_up_remote_schema is executed against the remote database. To synchronize the remote database using publication pub2, run the sync_pub2.bat file located in the \SQLPassThrough_EmptyRemote\rem directory. This cleans up the entire schema regarding publication pub1 and removes it, leaving only publication pub2 in the remote database. 13

14 VERIFYING THE EXECUTION OF SQL PASSTHROUGH SCRIPTS Another synchronization of publication pub2 by executing sync_pub2.bat uploads all of the SQL Passthrough results to the consolidated database. The ml_passthrough_status table on the consolidated database reports the status of all SQL Passthrough scripts that were executed and on which remotes the execution occurred. Figure 6 SQL Passthrough Script Results If an error occurs in the execution of a SQL Passthrough script, the script_status and error_code are provided in the ml_passthrough_status table. STEPS TO RUN THE DEMO The following steps run the demo using the provided batch files: 1. \SQLPassThrough_EmptyRemote\cons\setup.bat 2. \SQLPassThrough_EmptyRemote\rem\setup.bat 3. \SQLPassThrough_EmptyRemote\cons\passthrough.bat Wait for the following message to appear in the MobiLink console window to indicate the SQL Passthrough scripts have been read by the MobiLink Server: I :26:01. <Main> Server passthrough support has been enabled. 4. \SQLPassThrough_EmptyRemote\rem\sync_pub1.bat 5. \SQLPassThrough_EmptyRemote\rem\sync_pub2.bat 6. \SQLPassThrough_EmptyRemote\rem\sync_pub2.bat DEMO HANDLING ERRORS DURING EXECUTION OF SQL PASSTHROUGH SCRIPTS This demonstration of SQL Passthrough makes use of two remote databases and a consolidated database with a simple schema definition. The demonstration shows how to use the SQL Passthrough repair functionality to correct a failed execution of a script at a remote database. The SQL Passthrough script executes a create view statement on the two remote databases; however one of the databases already has a view defined with the same name. The SQL Passthrough repair functionality is used to alter the view on the remote database that already has the view defined. All files for the demo can be found here: CREATING THE SQL ANYWHERE CONSOLIDATED DATABASE The SQL Anywhere consolidated database is created by executing the setup.bat file found in the \SQLPassThrough_View_Error\cons directory. Executing the setup.bat file will: Initialize a SQL Anywhere consolidated database MLcons.db. 14

15 Create a user DSN viewerror_cons with connection parameters for the MLcons database. Start the MLcons database on a database server. Execute the syncsa.sql script against the demo database. Read the consolidated database schema into the MLcons database. The consolidated database schema is located in cons_schema.sql file found in the \SQLPassThrough_View_Error\cons directory. Insert test data into the MLcons database. Start the MobiLink Server and connect it to the consolidated database. The con_schema.sql script creates two tables, Table1 and Table2, and all the necessary synchronization scripts for MobiLink synchronization. CREATING THE SQL ANYWHERE REMOTE DATABASES This demonstration uses two remote databases, MLrem.db and MLrem2.db each containing two tables, Table1 and Table2. REMOTE DATABASE 1 Remote database 1 is created using the setup.bat file located in the \SQLPassThrough_View_Error\rem directory. The setup.bat file will: Initialize the SQL Anywhere remote database MLrem.db. Create a user DSN viewerror_rem with connection parameters for the MLrem database. Start the MLrem database on a database server. Read the remote database schema into the MLrem database. The remote database schema is located in rem_schema.sql file found in the \SQLPassThrough_View_Error\rem directory. The rem_schema.sql creates a view between Table1 and Table2 with the following syntax: CREATE VIEW DBA.v_TableData AS SELECT Table1.Table1_id Table1ID, Table2.Table2_id Table2ID FROM DBA.Table1, DBA.Table2 WHERE Table1.Table1_id = Table2.Table2_id; Insert test data into the MLrem database. Start the MobiLink client to complete an initial synchronization with the MobiLink Server. The view is created in remote database 1 for the purpose of demonstrating the SQL Passthrough repair functionality. REMOTE DATABASE 2 Remote database 2 is created using the setup.bat file located in the \SQLPassThrough_View_Error\rem2 directory. The setup.bat file will: Initialize the SQL Anywhere remote database MLrem2.db. Create a user DSN viewerror_rem2 with connection parameters for the MLrem2 database. Start the MLrem2 database on a database server. Read the remote database schema into the MLrem2 database. The remote database schema is located in rem2_schema.sql file found in the \SQLPassThrough_View_Error\rem2 directory. Insert test data into the MLrem2 database. Start the MobiLink client to complete an initial synchronization with the MobiLink Server. There is no view created in remote database 2. The view is created by SQL Passthrough scripts. The initial synchronization of both remote databases stores information in the ml_database table in the consolidated database about the remotes. This is necessary before SQL Passthrough scripts can be created and scheduled for execution on the remotes. 15

16 CONFIGURING SQL PASSTHROUGH IN THE CONSOLIDATED DATABASE The SQL Passthrough script can be created by executing the passthrough.bat script located in the \SQLPassThrough_View_Error\cons directory. The passthrough.bat file executes the passthrough.sql script. SQL Passthrough is defined as follows: /* * Setup Passthrough Scripts * */ CALL ml_add_passthrough_script ( create_view, automatic, pub1, CREATE VIEW DBA.v_TableData AS SELECT Table1.Table1_id TableID, Table1.Data Data1, Table2.Data Data2 FROM DBA.Table1, DBA.Table2 WHERE Table1.Table1_id = Table2.Table2_id;, Create a view TableData on the remote databases COMMIT; /* * Add the Passthrough Scripts * */ CALL ml_add_passthrough ( create_view, 10 COMMIT; SYNCHRONIZING THE REMOTE DATABASES The remote databases can be synchronized by executing the sync.bat file located in the appropriate directory for the remote database. When the SQL Passthrough script fails to execute on remote database 1, database synchronization also fails. However, future synchronization will be successful (is this correct, or should it say will NOT be successful?) without any SQL Passthrough scripts executing for remote database 1 until manual intervention occurs to resolve the script error. The synchronization failure of remote database 1 will look as follows: 16

17 Figure 7 MobiLink Client Failure due to Failed Script Execution After the SQL Passthrough script has executed on remote database 1 the dbo.sync_passthrough_status table is updated to show the status of the execution: Figure 8 SQL Passthrough Status in Remote Database 1 The next synchronization of each remote database will upload the results of the SQL Passthrough status to the consolidated database. This information is stored in the ml_passthrough_status MobiLink table: Figure 9 SQL Passthrough Status in the Consolidated Database At this time, no SQL Passthrough scripts can execute on remote database 1 until manual intervention occurs to resolve the script error. 17

18 CONFIGURING SQL PASSTHROUGH REPAIR SCRIPT IN THE CONSOLIDATED DATABASE The failed execution of the SQL Passthrough script on remote database 1 requires manual intervention before further scripts can be executed. To resolve the script error, a SQL Passthrough repair script will be created and executed on remote database 1. The other option is to ignore the error, but this demonstration will repair the script. In figure 2 the error_code and error_text in the ml_passthrough_status table show the error as follows: -110 Item v_tabledata already exists This error occurs because the view v_tabledata already exists in remote database 1. The easiest way to resolve this SQL Passthrough error is to create a new script that will alter the view to the desired outcome. The new SQL Passthrough script is defined as follows: /* * Setup Passthrough Repair Scripts * */ CALL ml_add_passthrough_script ( alter_view, automatic, pub1, ALTER VIEW DBA.v_TableData AS SELECT Table1.Table1_id TableID, Table1.Data Data1, Table2.Data Data2 FROM DBA.Table1, DBA.Table2 WHERE Table1.Table1_id = Table2.Table2_id;, Create a view TableData on the remote databases COMMIT; The ml_add_passthrough_repair procedure is then called to instruct the MobiLink Server to download and execute the alter_view script to any remote that reports receiving an error code of -110 when executing the create_view script. The ml_add_passthrough_repair procedure is called as follows: /* * Add the Passthrough Scripts * */ CALL ml_add_passthrough_repair ( create_view, -110, alter_view, R COMMIT; 18

19 The next synchronization of remote database 1 causes the alter view script to be downloaded and executed. After the execution of the script the dbo.sync_passthrough_status table is updated to show the status of the execution: Figure 10 SQL Passthrough Status in Remote Database 1 after Execution of Repair Script Another synchronization of remote database 1 uploads the results of the SQL Passthrough status to the consolidated database. This information is stored in the ml_passthrough_status MobiLink table: Figure 11 SQL Passthrough Status in Consolidated Database after Execution of Repair Script Both remote databases now have the view properly created using SQL Passthrough scripts. Remote database 1 can now execute future SQL Passthrough scripts normally. STEPS TO RUN THE DEMO The following steps will run the demo using the provided batch files: 1. \SQLPassThrough_View_Error\cons\setup.bat 2. \SQLPassThrough_View_Error\rem\setup.bat 3. \SQLPassThrough_View_Error\rem2\setup.bat 4. \SQLPassThrough_View_Error\cons\passthrough.bat Wait for the following message to appear in the MobiLink console window to indicate the SQL Passthrough scripts have been read by the MobiLink Server: I :26:01. <Main> Server passthrough support has been enabled. 5. \SQLPassThrough_View_Error\rem\sync.bat 6. \SQLPassThrough_View_Error\rem2\sync.bat 7. \SQLPassThrough_View_Error\rem\sync.bat 8. \SQLPassThrough_View_Error\rem2\sync.bat 9. \SQLPassThrough_View_Error\cons\repair_passthrough.bat 19

20 10. \SQLPassThrough_View_Error\rem\sync.bat 11. \SQLPassThrough_View_Error\rem2\sync.bat 12. \SQLPassThrough_View_Error\rem\sync.bat 13. \SQLPassThrough_View_Error\rem2\sync.bat SUMMARY This document has explained the functionality of the new SQL Passthrough feature in SQL Anywhere Included in the document are two demonstrations on how to use the new feature. The SQL Passthrough feature is a very powerful and robust administrative tool for MobiLink synchronization environments. 20

21 Copyright 2008 ianywhere Solutions, Inc. All Rights Reserved. Sybase, Afaria, SQL Anywhere, Adaptive Server Anywhere, MobiLink, UltraLite, and M-Business Anywhere are trademarks of Sybase, Inc. All other trademarks are property of their respective owners. 21

Anywhere 11. Introduction to MobiLink Synchronization. Joshua Savill

Anywhere 11. Introduction to MobiLink Synchronization. Joshua Savill Getting Started with MobiLink in SQL Anywhere 11 Introduction to MobiLink Synchronization Joshua Savill Product Manager August 27 th, 2009 AGENDA Introduction to SQL Anywhere 11 components Explanation

More information

SQL 502 Adding MobiLink Synchronization to an Existing Database

SQL 502 Adding MobiLink Synchronization to an Existing Database SQL 502 Adding MobiLink Synchronization to an Existing Database Reg Domaratzki (rdomarat@ianywhere.com) International and Sustaining Engineering Group ianywhere Solutions, Waterloo, Ontario, Canada Outline

More information

Configuring the Relay Server with Microsoft IIS using SSL 2 nd Edition

Configuring the Relay Server with Microsoft IIS using SSL 2 nd Edition Configuring the Relay Server with Microsoft IIS using SSL 2 nd Edition A whitepaper from Sybase ianywhere Author: Joshua Savill, Product Manager Date: April 3 rd, 2009 This whitepaper was written in the

More information

The Dbmlsync API. A whitepaper from Sybase ianywhere Author: Joshua Savill, Product Manager Date: October 30 th, 2008

The Dbmlsync API. A whitepaper from Sybase ianywhere Author: Joshua Savill, Product Manager Date: October 30 th, 2008 The Dbmlsync API A whitepaper from Sybase ianywhere Author: Joshua Savill, Product Manager Date: October 30 th, 2008 This whitepaper was written in the context of SQL Anywhere 11. CONTENTS Introduction

More information

New Features Guide Sybase ETL 4.9

New Features Guide Sybase ETL 4.9 New Features Guide Sybase ETL 4.9 Document ID: DC00787-01-0490-01 Last revised: September 2009 This guide describes the new features in Sybase ETL 4.9. Topic Page Using ETL with Sybase Replication Server

More information

MobiLink 11 Performance. A whitepaper from Sybase ianywhere. Author: Graham Hurst. Date: July 2009

MobiLink 11 Performance. A whitepaper from Sybase ianywhere. Author: Graham Hurst. Date: July 2009 MobiLink 11 Performance A whitepaper from Sybase ianywhere Author: Graham Hurst Date: July 2009 This whitepaper was written in the context of SQL Anywhere 11. However, its content may be applicable to

More information

Db2 Analytics Accelerator V5.1 What s new in PTF 5

Db2 Analytics Accelerator V5.1 What s new in PTF 5 Ute Baumbach, Christopher Watson IBM Boeblingen Laboratory Db2 Analytics Accelerator V5.1 What s new in PTF 5 Legal Disclaimer IBM Corporation 2017. All Rights Reserved. The information contained in this

More information

MobiLink 10 Performance. A whitepaper from Sybase ianywhere. Author: Graham Hurst. Date: March 2009

MobiLink 10 Performance. A whitepaper from Sybase ianywhere. Author: Graham Hurst. Date: March 2009 MobiLink 10 Performance A whitepaper from Sybase ianywhere Author: Graham Hurst Date: March 2009 This whitepaper was written in the context of SQL Anywhere 10. However, its content may be applicable to

More information

New Features Summary. SAP Sybase Event Stream Processor 5.1 SP02

New Features Summary. SAP Sybase Event Stream Processor 5.1 SP02 Summary SAP Sybase Event Stream Processor 5.1 SP02 DOCUMENT ID: DC01616-01-0512-01 LAST REVISED: April 2013 Copyright 2013 by Sybase, Inc. All rights reserved. This publication pertains to Sybase software

More information

Microsoft SQL Server Fix Pack 15. Reference IBM

Microsoft SQL Server Fix Pack 15. Reference IBM Microsoft SQL Server 6.3.1 Fix Pack 15 Reference IBM Microsoft SQL Server 6.3.1 Fix Pack 15 Reference IBM Note Before using this information and the product it supports, read the information in Notices

More information

Replicating Perceptive Content to a Test Environment

Replicating Perceptive Content to a Test Environment Replicating Perceptive Content to a Test Environment Best Practices Version: 7.2.x Written by: Product Knowledge, R&D Date: April 2017 2017 Lexmark. All rights reserved. Lexmark is a trademark of Lexmark

More information

Replicating Perceptive Content to a Test Environment

Replicating Perceptive Content to a Test Environment Replicating Perceptive Content to a Test Environment Best Practices Perceptive Content, Version: 7.1.x Written by: Product Knowledge, R&D Date: January 2017 2016 Lexmark. All rights reserved. Lexmark is

More information

MobiLink Performance. A whitepaper from ianywhere Solutions, Inc., a subsidiary of Sybase, Inc.

MobiLink Performance. A whitepaper from ianywhere Solutions, Inc., a subsidiary of Sybase, Inc. MobiLink Performance A whitepaper from ianywhere Solutions, Inc., a subsidiary of Sybase, Inc. Contents Executive summary 2 Introduction 3 What are the time-consuming steps in MobiLink synchronization?

More information

MobiLink Client Administration

MobiLink Client Administration MobiLink Client Administration Version 12.0.1 January 2012 Copyright 2012, ianywhere Solutions, Inc. - SQL Anywhere 12.0.1 Version 12.0.1 January 2012 Copyright 2012 ianywhere Solutions, Inc. Portions

More information

Table of Contents DATA MANAGEMENT TOOLS 4. IMPORT WIZARD 6 Setting Import File Format (Step 1) 7 Setting Source File Name (Step 2) 8

Table of Contents DATA MANAGEMENT TOOLS 4. IMPORT WIZARD 6 Setting Import File Format (Step 1) 7 Setting Source File Name (Step 2) 8 Data Management Tools 1 Table of Contents DATA MANAGEMENT TOOLS 4 IMPORT WIZARD 6 Setting Import File Format (Step 1) 7 Setting Source File Name (Step 2) 8 Importing ODBC Data (Step 2) 10 Importing MSSQL

More information

IBM DB2 Query Patroller. Administration Guide. Version 7 SC

IBM DB2 Query Patroller. Administration Guide. Version 7 SC IBM DB2 Query Patroller Administration Guide Version 7 SC09-2958-00 IBM DB2 Query Patroller Administration Guide Version 7 SC09-2958-00 Before using this information and the product it supports, be sure

More information

Ebook : Overview of application development. All code from the application series books listed at:

Ebook : Overview of application development. All code from the application series books listed at: Ebook : Overview of application development. All code from the application series books listed at: http://www.vkinfotek.com with permission. Publishers: VK Publishers Established: 2001 Type of books: Develop

More information

SAP Sybase Replication Server Change DATA Capture Configuration. Example Configuration

SAP Sybase Replication Server Change DATA Capture Configuration. Example Configuration SAP Sybase Replication Server Change DATA Capture Configuration Example Configuration TABLE OF CONTENTS 1 INTRODUCTION... 3 1.1 Scope... 3 1.2 Purpose... 3 2 CONFIGURATION... 4 2.1 Requeriments... 4 2.2

More information

SQL Server Replication Guide

SQL Server Replication Guide SQL Server Replication Guide Rev: 2016-10-20 Sitecore CMS 6.3-7.2 SQL Server Replication Guide Table of Contents Chapter 1 SQL Server Replication Guide... 3 1.1.1 The Addition of a uniqueidentifier Column...

More information

Eric Farrar Product Manager

Eric Farrar Product Manager Taking It All Offline with ihsql Anywhere Eric Farrar Product Manager Why is Web Development Attractive? Zero deployment No need to maintain previous versions Everyone updated at the same time Some security

More information

Oracle SQL Developer. Oracle TimesTen In-Memory Database Support User's Guide Release 4.0 E

Oracle SQL Developer. Oracle TimesTen In-Memory Database Support User's Guide Release 4.0 E Oracle SQL Developer Oracle TimesTen In-Memory Database Support User's Guide Release 4.0 E39882-02 December 2013 Oracle SQL Developer Oracle TimesTen In-Memory Database Support User's Guide, Release 4.0

More information

Perceptive Content. Release Notes. Version: 7.0.x

Perceptive Content. Release Notes. Version: 7.0.x Perceptive Content Release Notes Version: 7.0.x Written by: Product Knowledge, R&D Date: May 2018 2015-2017 Lexmark International Technology, S.A. All rights reserved. Lexmark is a trademark of Lexmark

More information

Perceptive Content. Release Notes. Version: 7.0.x

Perceptive Content. Release Notes. Version: 7.0.x Perceptive Content Release Notes Version: 7.0.x Written by: Product Knowledge, R&D Date: February 2016 2015-2016 Lexmark International Technology, S.A. All rights reserved. Lexmark is a trademark of Lexmark

More information

Business Reasons For Mobilizing Oracle Databases Using SQL Anywhere. A whitepaper from Sybase ianywhere

Business Reasons For Mobilizing Oracle Databases Using SQL Anywhere. A whitepaper from Sybase ianywhere Business Reasons For Mobilizing Oracle Databases Using SQL Anywhere A whitepaper from Sybase ianywhere CONTENTS Contents 2 Introduction 3 Why Develop Mobile Database Applications? 3 Anatomy of a Mobile

More information

Learn Well Technocraft

Learn Well Technocraft Getting Started with ASP.NET This module explains how to build and configure a simple ASP.NET application. Introduction to ASP.NET Web Applications Features of ASP.NET Configuring ASP.NET Applications

More information

Perceptive Matching Engine

Perceptive Matching Engine Perceptive Matching Engine Advanced Design and Setup Guide Version: 1.0.x Written by: Product Development, R&D Date: January 2018 2018 Hyland Software, Inc. and its affiliates. Table of Contents Overview...

More information

StarTeam 15.0 Synchronizer for Quality Center User Guide

StarTeam 15.0 Synchronizer for Quality Center User Guide StarTeam 15.0 Synchronizer for Quality Center User Guide Borland Software Corporation 700 King Farm Blvd, Suite 400 Rockville, MD 20850 Copyright Micro Focus. All rights Reserved. Portions Copyright 1998-2009

More information

How to Use Full Pushdown Optimization in PowerCenter

How to Use Full Pushdown Optimization in PowerCenter How to Use Full Pushdown Optimization in PowerCenter 2014 Informatica Corporation. No part of this document may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording

More information

Rapid SQL 7.5 Evaluation Guide. Published: September 28, 2007

Rapid SQL 7.5 Evaluation Guide. Published: September 28, 2007 Rapid SQL 7.5 Evaluation Guide Published: September 28, 2007 Embarcadero Technologies, Inc. 100 California Street, 12th Floor San Francisco, CA 94111 U.S.A. This is a preliminary document and may be changed

More information

IBM Optim. Edit User Manual. Version7Release3

IBM Optim. Edit User Manual. Version7Release3 IBM Optim Edit User Manual Version7Release3 IBM Optim Edit User Manual Version7Release3 Note Before using this information and the product it supports, read the information in Notices on page 79. Version

More information

User Scripting April 14, 2018

User Scripting April 14, 2018 April 14, 2018 Copyright 2013, 2018, Oracle and/or its affiliates. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and

More information

Perceptive TransForm E-Forms Manager

Perceptive TransForm E-Forms Manager Perceptive TransForm E-Forms Manager Installation and Setup Guide Version: 8.x Date: February 2017 2016-2017 Lexmark. All rights reserved. Lexmark is a trademark of Lexmark International Inc., registered

More information

Migrating Mappings and Mapplets from a PowerCenter Repository to a Model Repository

Migrating Mappings and Mapplets from a PowerCenter Repository to a Model Repository Migrating Mappings and Mapplets from a PowerCenter Repository to a Model Repository 2016 Informatica LLC. No part of this document may be reproduced or transmitted in any form, by any means (electronic,

More information

Getting Started Tutorial - Eclipse Edition. Sybase Unwired Platform 1.2

Getting Started Tutorial - Eclipse Edition. Sybase Unwired Platform 1.2 Getting Started Tutorial - Eclipse Edition Sybase Unwired Platform 1.2 DOCUMENT ID: DC01017-01-0120-01 LAST REVISED: March, 2009 Copyright 2009 by Sybase, Inc. All rights reserved. This publication pertains

More information

SILWOOD TECHNOLOGY LTD. Safyr Metadata Discovery Software. Safyr Getting Started Guide

SILWOOD TECHNOLOGY LTD. Safyr Metadata Discovery Software. Safyr Getting Started Guide SILWOOD TECHNOLOGY LTD Safyr Metadata Discovery Software Safyr Getting Started Guide S I L W O O D T E C H N O L O G Y L I M I T E D Safyr Getting Started Guide Safyr 7.1 This product is subject to the

More information

This document contains information on fixed and known limitations for Test Data Management.

This document contains information on fixed and known limitations for Test Data Management. Informatica LLC Test Data Management Version 10.1.0 Release Notes December 2016 Copyright Informatica LLC 2003, 2016 Contents Installation and Upgrade... 1 Emergency Bug Fixes in 10.1.0... 1 10.1.0 Fixed

More information

Sybase IQ Quick Start

Sybase IQ Quick Start Sybase IQ Quick Start Document ID: DC01014-01-1510-01 Last revised: June 2009 Topic Page Introduction 2 Demo database 2 Table names 2 Creating and using an IQ demo database 3 Converting the IQ demo database

More information

Vendor: Oracle. Exam Code: 1Z Exam Name: Oracle Database 11g Security Essentials. Version: Demo

Vendor: Oracle. Exam Code: 1Z Exam Name: Oracle Database 11g Security Essentials. Version: Demo Vendor: Oracle Exam Code: 1Z0-528 Exam Name: Oracle Database 11g Security Essentials Version: Demo QUESTION 1 Which of the following tasks is the first task to perform when implementing Oracle Database

More information

Cobra Navigation Release 2011

Cobra Navigation Release 2011 Cobra Navigation Release 2011 Cobra Navigation - Rev.0.2 Date: November 27 2012 jmaas@flowserve.com Page 1 of 34 Contents Contents 1 Revision History... 5 2 Introduction.... 6 3 Cobra Login... 7 3.1 Initial

More information

EDB xdb Replication Server 5.1

EDB xdb Replication Server 5.1 EDB xdb Replication Server 5.1 Release Notes February 24, 2014 EDB xdb Replication Server, Version 5.1 Release Notes by EnterpriseDB Corporation Copyright 2014 EnterpriseDB Corporation. All rights reserved.

More information

ROLLBACK SEGMENTS. In this chapter, you will learn about: Rollback Segment Management Page 272

ROLLBACK SEGMENTS. In this chapter, you will learn about: Rollback Segment Management Page 272 C H A P T E R 1 2 ROLLBACK SEGMENTS CHAPTER OBJECTIVES In this chapter, you will learn about: Rollback Segment Management Page 272 The information in a rollback segment is used for query read consistency,

More information

About One Identity Quick Connect for Base Systems 2.4.0

About One Identity Quick Connect for Base Systems 2.4.0 One Identity Quick Connect for Base Systems 2.4.0 October 2018 These release notes provide information about the One Identity Quick Connect for Base Systems release. About New features Resolved issues

More information

API Gateway Version September Key Property Store User Guide

API Gateway Version September Key Property Store User Guide API Gateway Version 7.5.2 15 September 2017 Key Property Store User Guide Copyright 2017 Axway All rights reserved. This documentation describes the following Axway software: Axway API Gateway 7.5.2 No

More information

User's Guide c-treeace SQL Explorer

User's Guide c-treeace SQL Explorer User's Guide c-treeace SQL Explorer Contents 1. c-treeace SQL Explorer... 4 1.1 Database Operations... 5 Add Existing Database... 6 Change Database... 7 Create User... 7 New Database... 8 Refresh... 8

More information

Sql Server 'create Schema' Must Be The First Statement In A Query Batch

Sql Server 'create Schema' Must Be The First Statement In A Query Batch Sql Server 'create Schema' Must Be The First Statement In A Query Batch ALTER VIEW must be the only statement in batch SigHierarchyView) WITH SCHEMABINDING AS ( SELECT (Sig). I'm using SQL Server 2012.

More information

Interstage Business Process Manager Analytics V12.0 Studio Guide

Interstage Business Process Manager Analytics V12.0 Studio Guide Interstage Business Process Manager Analytics V12.0 Studio Guide Windows/Linux January 2012 Studio Guide Trademarks Trademarks of other companies are used in this documentation only to identify particular

More information

IBM Operational Decision Manager Version 8 Release 5. Configuring Operational Decision Manager on WebLogic

IBM Operational Decision Manager Version 8 Release 5. Configuring Operational Decision Manager on WebLogic IBM Operational Decision Manager Version 8 Release 5 Configuring Operational Decision Manager on WebLogic Note Before using this information and the product it supports, read the information in Notices

More information

Business Intelligence Exchange (BIX)

Business Intelligence Exchange (BIX) Business Intelligence Exchange (BIX) Release Notes Version 2.3 And Version 2.3 SP1 February, 2012 Framework Overview The Business Intelligence Exchange (BIX) extracts information from a PRPC database into

More information

Using. Safran Planner SQL System Administration. Safran Planner SQL version 4.1

Using. Safran Planner SQL System Administration. Safran Planner SQL version 4.1 Using Safran Planner SQL System Administration Safran Planner SQL version 4.1 Copyright (c) 1999-2009, Safran Software Solutions AS. All Rights reserved. Accuracy Although every effort has been made to

More information

Today Learning outcomes LO2

Today Learning outcomes LO2 2015 2016 Phil Smith Today Learning outcomes LO2 On successful completion of this unit you will: 1. Be able to design and implement relational database systems. 2. Requirements. 3. User Interface. I am

More information

Oracle Sql Describe Schema Query To Find Table

Oracle Sql Describe Schema Query To Find Table Oracle Sql Describe Schema Query To Find Table And, notably, Oracle still doesn't support the information schema. Views in the /d (object_name) will describe the schema of the table or view. Not sure how.

More information

Table of Contents. Table of Contents Pivotal Greenplum Command Center Release Notes. Copyright Pivotal Software Inc,

Table of Contents. Table of Contents Pivotal Greenplum Command Center Release Notes. Copyright Pivotal Software Inc, Table of Contents Table of Contents Pivotal Greenplum Command Center 3.2.2 Release Notes 1 2 Copyright Pivotal Software Inc, 2013-2017 1 3.2.2 Pivotal Greenplum Command Center 3.2.2 Release Notes Greenplum

More information

Oracle 11g Invisible Indexes Inderpal S. Johal. Inderpal S. Johal, Data Softech Inc.

Oracle 11g Invisible Indexes   Inderpal S. Johal. Inderpal S. Johal, Data Softech Inc. ORACLE 11G INVISIBLE INDEXES Inderpal S. Johal, Data Softech Inc. INTRODUCTION In this document we will work on another Oracle 11g interesting feature called Invisible Indexes. This will be very helpful

More information

IBM InfoSphere Data Replication s CDC DDL Change Management for Oracle

IBM InfoSphere Data Replication s CDC DDL Change Management for Oracle IBM InfoSphere Data Replication s CDC DDL Change Management for Oracle This document describes the new simplified procedure to follow after changes are made to the source table structure. The procedure

More information

One Identity Active Roles 7.2. Replication: Best Practices and Troubleshooting Guide

One Identity Active Roles 7.2. Replication: Best Practices and Troubleshooting Guide One Identity Active Roles 7.2 Replication: Best Practices and Troubleshooting Copyright 2017 One Identity LLC. ALL RIGHTS RESERVED. This guide contains proprietary information protected by copyright. The

More information

User Manual. Active Directory Change Tracker

User Manual. Active Directory Change Tracker User Manual Active Directory Change Tracker Last Updated: March 2018 Copyright 2018 Vyapin Software Systems Private Ltd. All rights reserved. This document is being furnished by Vyapin Software Systems

More information

NETWRIX ACTIVE DIRECTORY CHANGE REPORTER

NETWRIX ACTIVE DIRECTORY CHANGE REPORTER NETWRIX ACTIVE DIRECTORY CHANGE REPORTER ADMINISTRATOR S GUIDE Product Version: 7.2 January 2013. Legal Notice The information in this publication is furnished for information use only, and does not constitute

More information

IBM Database Conversion Workbench 3.5

IBM Database Conversion Workbench 3.5 3.5 Oracle to IBM dashdb Conversion Guide Version: 3.5 Last Updated: June 12th, 2015 Table of Contents 1. Introduction... 4 2. Prerequisites... 5 3. Overview of the Conversion Process... 6 4. Set Up Your

More information

Oracle Schema Create Date Index Trunc >>>CLICK HERE<<<

Oracle Schema Create Date Index Trunc >>>CLICK HERE<<< Oracle Schema Create Date Index Trunc Changes in This Release for Oracle Database SQL Language Reference. open References to Partitioned Tables and Indexes References to Object Type Attributes and Methods

More information

Technical White Paper

Technical White Paper Technical White Paper On Implementing IBM InfoSphere Change Data Capture for Sybase with a Remote Database Server Awajeet Kumar Arya(awajarya@in.ibm.com) CONTENTS Trademarks...03 Introduction...04 Overview...04

More information

Chapter 8: Working With Databases & Tables

Chapter 8: Working With Databases & Tables Chapter 8: Working With Databases & Tables o Working with Databases & Tables DDL Component of SQL Databases CREATE DATABASE class; o Represented as directories in MySQL s data storage area o Can t have

More information

Documentation Accessibility. Access to Oracle Support. Supported Browsers

Documentation Accessibility. Access to Oracle Support. Supported Browsers Oracle Cloud Known Issues for Oracle Business Intelligence Cloud Service E37404-12 March 2018 Known Issues Learn about the issues you may encounter when using Oracle Business Intelligence Cloud Service

More information

Oracle SQL. murach s. and PL/SQL TRAINING & REFERENCE. (Chapter 2)

Oracle SQL. murach s. and PL/SQL TRAINING & REFERENCE. (Chapter 2) TRAINING & REFERENCE murach s Oracle SQL and PL/SQL (Chapter 2) works with all versions through 11g Thanks for reviewing this chapter from Murach s Oracle SQL and PL/SQL. To see the expanded table of contents

More information

Database Management Systems

Database Management Systems DATABASE CONCEPTS & APPLICATIONS Database Management Systems A Database Management System (DBMS) is a software package designed to store and manage databases through database applications. User Database

More information

Setting up a database for multi-user access

Setting up a database for multi-user access BioNumerics Tutorial: Setting up a database for multi-user access 1 Aims There are several situations in which multiple users in the same local area network (LAN) may wish to work with a shared BioNumerics

More information

Using. Safran Planner System Administration. Safran Planner 5

Using. Safran Planner System Administration. Safran Planner 5 Using Safran Planner System Administration Safran Planner 5 Copyright (c) 1999-2014, Safran Software Solutions AS. All Rights reserved. Accuracy Although every effort has been made to ensure the accuracy

More information

If Informatica Data Replication is not currently installed, complete a first-time installation. Otherwise, complete the upgrade procedure.

If Informatica Data Replication is not currently installed, complete a first-time installation. Otherwise, complete the upgrade procedure. Informatica Corporation Data Replication Version 9.5.1 Release Notes August 2013 Copyright (c) 2013 Informatica Corporation. All rights reserved. Contents Introduction... 1 Installation and Upgrading...

More information

Documentation Accessibility

Documentation Accessibility Oracle Warehouse Builder Release Notes 11g Release 2 (11.2) E10585-04 March 2010 This document contains important information not included in the Oracle Warehouse Builder documentation. This document provides

More information

Oracle Standard Management Pack

Oracle Standard Management Pack Oracle Standard Management Pack Readme Release 2.1.0.0.0 February 2000 Part No. A76911-01 Table Of Contents 1 Introduction 2 Compatibility 3 Documentation and Help 4 Oracle Performance Manager 5 Oracle

More information

IBM. Migration Cookbook. Migrating from License Metric Tool and Tivoli Asset Discovery for Distributed 7.5 to License Metric Tool 9.

IBM. Migration Cookbook. Migrating from License Metric Tool and Tivoli Asset Discovery for Distributed 7.5 to License Metric Tool 9. IBM License Metric Tool 9.x Migration Cookbook Migrating from License Metric Tool and Tivoli Asset Discovery for Distributed 7.5 to License Metric Tool 9.x IBM IBM License Metric Tool 9.x Migration Cookbook

More information

NETWRIX GROUP POLICY CHANGE REPORTER

NETWRIX GROUP POLICY CHANGE REPORTER NETWRIX GROUP POLICY CHANGE REPORTER ADMINISTRATOR S GUIDE Product Version: 7.2 November 2012. Legal Notice The information in this publication is furnished for information use only, and does not constitute

More information

DB2 S-TAP, IMS S-TAP, VSAM S-TAP

DB2 S-TAP, IMS S-TAP, VSAM S-TAP IBM InfoSphere Guardium Version 8.2 IBM InfoSphere Guardium 8.2 offers the most complete database protection solution for reducing risk, simplifying compliance and lowering audit cost. Version 8.2 contains

More information

Chapter # 7 Introduction to Structured Query Language (SQL) Part I

Chapter # 7 Introduction to Structured Query Language (SQL) Part I Chapter # 7 Introduction to Structured Query Language (SQL) Part I Introduction to SQL SQL functions fit into two broad categories: Data definition language Data manipulation language Basic command set

More information

Senior Director of Engineering

Senior Director of Engineering SQL Anywhere State of the Union Chris Kleisath Chris Kleisath Senior Director of Engineering SQL Anywhere has 3 key technologies. SQL Anywhere benefits a variety of environments. SQL Anywhere today, and

More information

New Features Summary PowerDesigner 15.2

New Features Summary PowerDesigner 15.2 New Features Summary PowerDesigner 15.2 Windows DOCUMENT ID: DC10077-01-1520-01 LAST REVISED: February 2010 Copyright 2010 by Sybase, Inc. All rights reserved. This publication pertains to Sybase software

More information

Get Oracle Schema Ddl Syntax With Dbms_metadata

Get Oracle Schema Ddl Syntax With Dbms_metadata Get Oracle Schema Ddl Syntax With Dbms_metadata It there an easy way to extract DDLs from an Oracle 10 schema (tables and route, then rather than trying to convert Oracle DDL syntax to H2 you'd be better

More information

Optimizing Performance for Partitioned Mappings

Optimizing Performance for Partitioned Mappings Optimizing Performance for Partitioned Mappings 1993-2015 Informatica LLC. No part of this document may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording or otherwise)

More information

Embarcadero Change Manager 5.1 Installation Guide. Published: July 22, 2009

Embarcadero Change Manager 5.1 Installation Guide. Published: July 22, 2009 Embarcadero Change Manager 5.1 Installation Guide Published: July 22, 2009 Copyright 1994-2009 Embarcadero Technologies, Inc. Embarcadero Technologies, Inc. 100 California Street, 12th Floor San Francisco,

More information

Oracle SQL Developer TimesTen In-Memory Database Support

Oracle SQL Developer TimesTen In-Memory Database Support Oracle SQL Developer TimesTen In-Memory Database Support Release Notes Release 2.1 E15859-03 March 2010 This document provides late-breaking information as well as information that is not yet part of the

More information

Real Application Security Administration

Real Application Security Administration Oracle Database Real Application Security Administration Console (RASADM) User s Guide 12c Release 2 (12.2) E85615-01 June 2017 Real Application Security Administration Oracle Database Real Application

More information

Project Management Framework

Project Management Framework Project Management Framework 7.1.2 UPGRADE GUIDE Copyright 2015 Pegasystems Inc., Cambridge, MA All rights reserved. This document describes products and services of Pegasystems Inc. It may contain trade

More information

Oracle Database Lite. Automatic Synchronization White Paper. An Oracle White Paper August 2008

Oracle Database Lite. Automatic Synchronization White Paper. An Oracle White Paper August 2008 Oracle Database Lite Automatic Synchronization White Paper An Oracle White Paper August 2008 Oracle Database Lite Automatic Synchronization White Paper OVERVIEW Oracle Database Lite allows field workers

More information

Reporting Best Practices

Reporting Best Practices Note You can find troubleshooting information for Cisco Unified Customer Voice Portal (Unified CVP) Reporting on the Cisco Troubleshooting Doc Wiki site The chapter contains the following topics: Reporting

More information

DBArtisan XE Pro and DBArtisan Evaluation Guide

DBArtisan XE Pro and DBArtisan Evaluation Guide Product Documentation DBArtisan XE Pro and DBArtisan 8.7.3 Evaluation Guide Version 8.7.3 Corporate Headquarters EMEA Headquarters Asia-Pacific Headquarters 100 California Street, 12th Floor San Francisco,

More information

DB Change Manager. User Guide. Version 17.0 Published December 2017

DB Change Manager. User Guide. Version 17.0 Published December 2017 DB Change Manager User Guide Version 17.0 Published December 2017 2017 IDERA, Inc. IDERA, the IDERA logos, and all other IDERA product or service names are trademarks or registered trademarks of IDERA,

More information

Model Question Paper. Credits: 4 Marks: 140

Model Question Paper. Credits: 4 Marks: 140 Model Question Paper Subject Code: BT0075 Subject Name: RDBMS and MySQL Credits: 4 Marks: 140 Part A (One mark questions) 1. MySQL Server works in A. client/server B. specification gap embedded systems

More information

Product: DQ Order Manager Release Notes

Product: DQ Order Manager Release Notes Product: DQ Order Manager Release Notes Subject: DQ Order Manager v7.1.29 Version: 1.0 January 20, 2017 Distribution: ODT Customers DQ OrderManager v7.1.29 *** requires db update 20170120 or newer ***

More information

Embarcadero Rapid SQL

Embarcadero Rapid SQL Product Documentation Embarcadero Rapid SQL New Features Guide Version 8.6.1/XE5 Published May, 2014 2014 Embarcadero Technologies, Inc. Embarcadero, the Embarcadero Technologies logos, and all other Embarcadero

More information

Oracle Audit Vault. Trust-but-Verify for Enterprise Databases. Tammy Bednar Sr. Principal Product Manager Oracle Database Security

Oracle Audit Vault. Trust-but-Verify for Enterprise Databases. Tammy Bednar Sr. Principal Product Manager Oracle Database Security Oracle Audit Vault Trust-but-Verify for Enterprise Databases Tammy Bednar Sr. Principal Product Manager Oracle Database Security Agenda Business Drivers Audit Vault Overview Audit

More information

Oracle Database 10g Resource Manager. An Oracle White Paper October 2005

Oracle Database 10g Resource Manager. An Oracle White Paper October 2005 Oracle Database 10g Resource Manager An Oracle White Paper October 2005 Oracle Database 10g Resource Manager INTRODUCTION... 3 SYSTEM AND RESOURCE MANAGEMENT... 3 ESTABLISHING RESOURCE PLANS AND POLICIES...

More information

Teiid - Scalable Information Integration. Teiid Caching Guide 7.6

Teiid - Scalable Information Integration. Teiid Caching Guide 7.6 Teiid - Scalable Information Integration 1 Teiid Caching Guide 7.6 1. Overview... 1 2. Results Caching... 3 2.1. Support Summary... 3 2.2. User Interaction... 3 2.2.1. User Query Cache... 3 2.2.2. Procedure

More information

Batch Scheduler. Version: 16.0

Batch Scheduler. Version: 16.0 Batch Scheduler Version: 16.0 Copyright 2018 Intellicus Technologies This document and its content is copyrighted material of Intellicus Technologies. The content may not be copied or derived from, through

More information

Create A Private Database Link In Another Schema In Oracle 11g Drop >>>CLICK HERE<<<

Create A Private Database Link In Another Schema In Oracle 11g Drop >>>CLICK HERE<<< Create A Private Database Link In Another Schema In Oracle 11g Drop Posts about create database link in another schema written by John Hallas. 11g new features 12c new features addm ASM Blogroll Grid control

More information

Oracle Revenue Management and Billing. File Upload Interface (FUI) - User Guide. Version Revision 1.1

Oracle Revenue Management and Billing. File Upload Interface (FUI) - User Guide. Version Revision 1.1 Oracle Revenue Management and Billing Version 2.6.0.1.0 File Upload Interface (FUI) - User Guide Revision 1.1 E97081-01 May, 2018 Oracle Revenue Management and Billing File Upload Interface (FUI) - User

More information

Oracle FLEXCUBE Direct Banking

Oracle FLEXCUBE Direct Banking Oracle FLEXCUBE Direct Banking Upgrade Installer User Release 12.0.2.0.0 Part No. E50108-01 September 2013 Oracle Financial Services Software Limited Oracle Park Off Western Express Highway Goregaon (East)

More information

IBM DB DB2 application development Hands-On Lab. Information Management Cloud Computing Center of Competence. IBM Canada Lab

IBM DB DB2 application development Hands-On Lab. Information Management Cloud Computing Center of Competence. IBM Canada Lab IBM DB2 9.7 DB2 application development Hands-On Lab I Information Management Cloud Computing Center of Competence IBM Canada Lab Contents CONTENTS...2 1. INTRODUCTION...3 2. OBJECTIVES...3 3. SUGGESTED

More information

1.264 Lecture 8. SQL continued Connecting to database servers

1.264 Lecture 8. SQL continued Connecting to database servers 1.264 Lecture 8 SQL continued Connecting to database servers Subqueries SQL subqueries let you use the results of one query as part of another query. Subqueries Are often natural ways of writing a statement

More information

Quest Central for DB2

Quest Central for DB2 Quest Central for DB2 INTEGRATED DATABASE MANAGEMENT TOOLS Supports DB2 running on Windows, Unix, OS/2, OS/390 and z/os Integrated database management components are designed for superior functionality

More information

Process Portal Search Index Comprehensive

Process Portal Search Index Comprehensive Process Portal Search Index Comprehensive SETH MERRISS Introduction The search index in IBM Business Process Manager Process Portal is used to allow users to search for tasks and process instances and

More information

Expert Oracle GoldenGate

Expert Oracle GoldenGate Expert Oracle GoldenGate Ben Prusinski Steve Phillips Richard Chung Apress* Contents About the Authors About the Technical Reviewer Acknowledgments xvii xviii xix Chapter 1: Introduction...1 Distributed

More information