Sybase® IQ (IQ) is a high-performance decision support server designed specifically for data warehousing. Since IQ is not optimized for inserting, updating and deleting row by row, you should implement a staging database to replicate data from OLTP databases to an IQ data warehouse.
PowerDesigner can automate the creation of the staging database. You create a standard replication with Sybase IQ as the target database, and then, a single command allows you to create all the artifacts required to implement the staging database.
The source database can be any supported database, the target database must be Sybase IQ. For detailed information about using the Replication Wizard, see Replicating Objects with the Replication Wizard
When you click OK to close the wizard, PowerDesigner will create source and target database objects in your ILM, as well as all the necessary articles, publications, and subscriptions that Replication Server requires to manage the replication of data between them:
Staging database options |
Description |
---|---|
Sybase ASE version |
Version of the Sybase ASE staging database automatically created. |
Database name |
PDM name of the staging database. |
Database code |
PDM code of the staging database. |
Server name |
Server name of the staging database. |
Server code |
Serve code of the staging database. |
Use insert table in Sybase IQ |
Indicates that an insert staging table will be used in Sybase IQ to copy inserted rows from staging database in order to support transformation inside Sybase IQ. |
Support update in Sybase IQ |
Indicates that an update statement will cause an update in Sybase IQ. If you do not select this option, update statements will be replaced by delete and insert statements. |
Insert table code |
Template for defining the code of an insert table. |
Update table code |
Template for defining the code of an update table. |
Delete table code |
Template for defining the code of a delete table |
Use stored procedure for function strings |
Creates stored procedures in the staging database and uses them in RepServer function strings. |
Insert procedure code |
Template for defining the code of insert stored procedures. |
Update procedure code |
Template for defining the code of update stored procedures. |
Delete procedure code |
Template for defining the code of delete stored procedures. |
The RepServer definition is modified, it is no longer directly connected to Sybase IQ but to the Sybase ASE staging database, and some function strings to replicate data into the Sybase ASE staging database have been added.
Creating a Sybase ASE database with the same structure as Sybase IQ.
Creating the stored procedures used by RepServer function strings in the staging database.
Changing the RepServer connection to the staging database.
Creating or modifying RepServer function strings to invoke the stored procedures.
Creating staging tables in Sybase IQ to move data from the staging database into temporary tables in Sybase IQ before moving the data into Sybase IQ tables.
Creating a stored procedure in Sybase IQ to load data from the staging database into Sybase IQ.
Creating a stored procedure in the staging database to clean transferred data.