Page tree
Skip to end of metadata
Go to start of metadata

Sybase


CAST extractor for Sybase

Configures a connection to a live Sybase database and will perform an extraction to file using CAST's own SQL extractor.

Note that:

- the database does not need to be online during the analysis process in the CAST Management Studio.
- Note that you do NOT need to install a compatible client connection layer (for the target RDBMS) on the machine on which you are running the CAST Delivery Manager Tool.

Host name Used to configure the host name of your database server. You can also enter an IP address if required.
Port Used to configure the port number for accessing your database server.

Default RDBMS port settings are as follows:

  • Sybase ASE > 12500
Credentials Select this option to enable the User/Password fields below. This is required if your target database server requires an authenticated connection.

Notes

  • Do not enable this option if a single sign on system is in operation in your environment.
User name Used to configure the user name that has sufficient privileges to access the required databases on the selected RDBMS for packaging purposes.

Database access rights for extraction action

In order to carry out an extraction of the required databases, the person in charge of the extraction (Delivery Manager or DBA) must use a Sybase ASE login that has the following roles and permissions (valid from CAST AIP 7.3.2 and all subsequent 7.3.x releases):

  • CONNECT role
  • SELECT permission on the following tables:
    • master.dbo.sysdatabases
    • master.dbo.spt_values
    • master.dbo.syscurconfigs

For each target database you want to extract, the SELECT permission is required on the following tables:

  • [%SQLdatabase%].dbo.sysusers 
  • [%SQLdatabase%].dbo.sysconstraints 
  • [%SQLdatabase%].dbo.sysreferences 
  • [%SQLdatabase%].dbo.sysobjects 
  • [%SQLdatabase%].dbo.syscolumns 
  • [%SQLdatabase%].dbo.sysindexes 
  • [%SQLdatabase%].dbo.syscomments 
  • [%SQLdatabase%].dbo.systypes
Password Used to configure the password that corresponds to your User name configured above.
Remember password This option enables you to force the CAST Delivery Manager Tool to save the database access credentials you have entered above.

Choosing an option or not has no impact on the extraction (i.e. the CAST Delivery Manager Tool can still access the required resources). However, if you are creating subsequent Versions of the same server, you can choose to store the password in which case you will not need to re-enter it.

There are two save options:

  • Local > The credentials are saved in the user's local workspace on the current machine. Choose this option if you do not want the password to be available to other Delivery Managers.
  • Server > The credentials are saved locally (as above) and are also synchronized back to the CAST AIC Portal (i.e. the Source Code Delivery Folder). Choose this option if you want the password to be available to other Delivery Managers.
Databases to extract This section enables you to limit the packaging to certain databases on the target RDBMS:

Use this option to browse the live server (using the credentials you supplied above) and display a list of the databases that are available. Place a check mark next to the database(s) that you want to package:

Click OK when you have selected the items you require.

Use this option if you know the name of the database you want to package. A dialog box will be displayed enabling you to enter the name of the database. You can only enter one database name at a time using this option - to enter multiple databases, either repeat this action, or use the option above.
Use this button to edit an existing schema - a dialog box will appear in which you can modify the existing database name.
Use this button to remove an existing database from the list.
JVM Memory Size The CAST extractors are Java based and require the use of the JRE JVM (Java Virtual Machine). This option allows you to configure the Maximum Java Heap Size of your JVM for use during the database/schema browse and extraction processes. By default 1GB of memory is allocated and in most scenarios this value can be left as it is.

You may need to change the amount of memory allocated to the JVM if you are getting out of memory exceptions for the Java Heap Space when you either browse to select a database/schema or when you use the Package action to invoke the extraction - this can occur more specifically when attempting to extract a large single database/schema or multiple databases/schemas. Please increase the memory allocation until you no longer receive errors, however, please bear the following in mind:

  • 32bit JRE: If you are running the CAST Delivery Manager Tool via the CAST AIC Portal and have installed a 32bit JRE for this purpose, or when the CAST Delivery Manager Tool is launched from the CAST Management Studio (when it will use a 32bit JRE that is provided with the CAST installation), CAST recommends that you do not increase the JVM Memory Size value to above 2GB, otherwise you risk running out of system memory.
  • If your database/schema extraction consistently runs out of memory despite having allocated the maximum possible with a 32bit JRE, you may need to ensure you are using a 64bit JRE to take advantage of increased memory availability. To do so, you must launch the CAST Delivery Manager Tool from the CAST AIC Portal, rather than directly from the CAST Management Studio (when it will use a 32bit JRE that is provided with the CAST installation). And before you do so, you must manually modify the shortcut to the CAST Delivery Manager Tool (available in the Windows Start menu) to replace the existing path to the 32bit JRE (C:\Windows\SysWOW64\javaws.exe) with your 64bit JRE path ("C:\Program Files\java\jre1.7.0_51\bin\javaws.exe" for example). You can add the -Xmx parameter (maximum memory allocation), that will allow the process to use the memory defined. The shortcut should now look similar to this:

    "C:\Program Files\java\jre1.7.0_51\bin\javaws.exe" -Xmx4096M -localfile
    "C:\Users\<user_name>\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\6\1c274146-29c73860"
Anonymize log file Use this option to hide sensitive information in the log file. When activated, the log file will contain stars in place of the host name/server name, schema name, username and password (i.e. server connection information):

Note that this option is not activated by default because anonymizing connection information can make it more difficult to troubleshoot errors or issues during the extraction phase.

Reuse existing CAST delivery output

If you have delivery output (i.e. a uaxdirectory file) from previous extractions carried out with a standalone CAST SQL Extractor, then you can use this option to package this output for subsequent analysis in the CAST Management Studio. Note that this option requires a .uaxdirectory file.

The configuration is as follows:

Server Version File Use this option to select the .uaxdirectory file.
Schemas to extract See identical option above - this functions in exactly the same way, however, for the option, no connection to a database is made. Instead, the contents of the .uaxdirectory are explored and the schemas that were previously extracted will be offered.

Note that if you want to select all schemas in the selected .uaxdirectory file then you need to specifically choose them using this option.


CAST Website

  • No labels