JDBC query scripts

The scripting library provides many script procedures to manage Java™ Database Connectivity (JDBC) configurations in your environment. See the usage information for scripts that retrieve configuration IDs for your JDBC configuration. You can run each script individually or combine many procedures to create custom automation scripts for your environment.

Each AdminJDBC script procedure is located in the app_server_root/scriptLibraries/resources/JDBC/V70 directory.

버전 7부터는 Jython 스크립트 라이브러리가 서버 범위에 있는 JDBC 제공자, JMS 자원 및 자원 제공자에 대한 스크립트 기능을 제공합니다. 고유한 사용자 정의 스크립트를 작성하여 셀, 노드 또는 클러스터 레벨에서 자원을 구성할 수 있습니다.
Note: 스크립트 라이브러리에서 스크립트 프로시저를 편집하지 마십시오. 사용자 정의 스크립트 라이브러리 프로시저를 작성하려면, app_server_root/scriptLibraries 디렉토리에 있는 스크립트를 Jython 구문 샘플로 사용하십시오. 라이브러리를 겹쳐쓰지 않도록 사용자 정의 스크립트는 새 서브디렉토리에 저장하십시오.
Fast path: 수정팩 5부터는 Jython 스크립트 라이브러리가 셀, 노드, 서버 또는 클러스터 범위에 있는 JDBC 제공자, JMS 자원 및 자원 제공자에 대한 스크립트 기능을 제공합니다. 자원 제공자에는 메일 제공자, URL 제공자 및 자원 환경 제공자가 포함됩니다. 특정 범위에 있는 자원을 구성하기 위해 사용자 정의 스크립트를 작성할 필요는 없습니다.
Use the following script procedures to query your JDBC configuration:

listDataSources

This script displays a list of configuration IDs for the data sources in your configuration.

No input arguments are required for the script. However, you can specify a data source name to return a specific configuration id, as defined in the following table:
Table 1. listDataSources script. Run the script to list data sources.
Argument Description
dsName Optionally specifies the name of the data source of interest.

Syntax

AdminJDBC.listDataSources(dsName)

Example usage

AdminJDBC.listDataSources()
AdminJDBC.listDataSources("myDataSource")

listDataSourceTemplates

This script displays a list of configuration IDs for the data source templates in your environment.

No input arguments are required for the script. However, you can specify a template name to return a specific configuration id, as defined in the following table:
Table 2. listDataSourceTemplates script. Run the script to list data source templates.
Argument Description
templateName Optionally specifies the name of the template of interest.

Syntax

AdminJDBC.listDataSourceTemplates(templateName)

Example usage

AdminJDBC.listDataSourceTemplates()
AdminJDBC.listDataSourceTemplates("Derby JDBC Driver DataSource")

listJDBCProviders

This script displays a list of configuration IDs for the JDBC providers in your environment.

No input arguments are required for the script. However, you can specify a JDBC provider name to return a specific configuration id, as defined in the following table:
Table 3. listJDBCProviders script. Run the script to list JDBC providers.
Argument Description
jdbcName Optionally specifies the name of the JDBC provider of interest.

Syntax

AdminJDBC.listJDBCProviders(jdbcName)

Example usage

AdminJDBC.listJDBCProviders()
AdminJDBC.listJDBCProviders("myJDBCProvider")

listJDBCProviderTemplates

This script displays a list of configuration IDs for the JDBC provider templates in your environment.

No input arguments are required for the script. However, you can specify a template name to return a specific configuration id, as defined in the following table:
Table 4. listJDBCProviderTemplates script. Run the script to list JDBC provider templates.
Argument Description
templateName Optionally specifies the name of the template of interest.

Syntax

AdminJDBC.listJDBCProviderTemplates(templateName)

Example usage

AdminJDBC.listJDBCProviderTemplates()
AdminJDBC.listJDBCProviderTemplates("Derby JDBC Provider")

주제 유형을 표시하는 아이콘 참조 주제



시간소인 아이콘 마지막 업데이트 날짜: July 9, 2016 6:09
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=rxml_7adminjdbc2
파일 이름:rxml_7adminjdbc2.html