<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
<!--ArborText, Inc., 1988-1999, v.4002-->
<!ENTITY metainfo SYSTEM "metainfo.sgm">
<!ENTITY options-common SYSTEM "options-common.sgm">
<!ENTITY synopsis-common SYSTEM "synopsis-common.sgm">
<!ENTITY % commonents SYSTEM "smancommon.ent">
%commonents;
<!ENTITY % booktitles SYSTEM "booktitles.ent">
%booktitles;
<!ENTITY Dash "&ndash;">
]>
<?Pub UDT _bookmark _target>
<?Pub EntList brvbar bull cross dash diam diams frac12 frac13 frac14 hellip
 laquo lArr loz mdash nabla ndash para pound rArr raquo sect yen ne>
<?Pub Inc>
<refentry id="delete-jdbc-resource-1">
<refmeta><refentrytitle>delete-jdbc-resource</refentrytitle><manvolnum>1</manvolnum>&metainfo;
</refmeta>
<refnamediv><indexterm><primary sortas="delete-jdbc-resource">delete-jdbc-resource &mdash;
removes a JDBC resource </primary></indexterm><indexterm><primary sortas="removes a JDBC resource"><?Pub Caret>
removes a JCBC resource&mdash; delete-jdbc-resource</primary></indexterm>
<refname>delete-jdbc-resource</refname><refpurpose>removes a JDBC resource
with the specified JNDI name</refpurpose></refnamediv>
<refsynopsisdiv><title>&synp-tt;</title>
<cmdsynopsis><command>delete-jdbc-resource</command>&synopsis-common;
<arg choice="opt">&Dash;&Dash;target <replaceable>target</replaceable></arg>
<arg choice="plain"><replaceable>jndi_name</replaceable></arg>
</cmdsynopsis></refsynopsisdiv>
<refsect1><title>&desc-tt;</title>
<para>The <command>delete-jdbc-resource</command> command removes a JDBC resource.
On Standard and Enterprise Editions, make sure that all associations to the
JDBC resource are removed before you execute this command. This command is
supported in remote mode only. </para>
</refsect1>
<refsect1><title>&opts-tt;</title>
<variablelist termlength="medium">&options-common;
<varlistentry><term><option role="nodash">&Dash;&Dash;target</option></term>
<listitem><para>&se-ee-only;</para>
<para>This option helps specify the target from which you are removing the
JDBC resource. Valid targets are: <itemizedlist>
<listitem><para><literal>server</literal>, which removes the resource from
the default server instance. This is the default value.</para>
</listitem>
<listitem><para><literal>domain</literal>, which removes the resource from
the domain.</para>
</listitem>
<listitem><para><replaceable>cluster_name</replaceable>, which removes the
resource from every server instance in the cluster.</para>
</listitem>
<listitem><para><replaceable>instance_name</replaceable>, which removes the
resource from a particular sever instance.</para>
</listitem>
</itemizedlist></para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&oper-tt;</title>
<variablelist termlength="medium">
<varlistentry><term><replaceable>jndi_name</replaceable></term><listitem>
<para>The JNDI name of this JDBC resource to be removed.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&exam-tt;</title>
<example>
<title>Using the delete-jdbc-resource command</title>
<para>The following example shows how to delete a JDBC resource in Sun Java
System Application Server Platform Edition.</para>
<screen>asadmin> <userinput>delete-jdbc-resource --user admin --passwordfile passwords.txt 
jdbc/DerbyPool</userinput>
Command delete-jdbc-resource executed successfully.</screen>
</example>
<example>
<title>Using the delete-jdbc-resource command</title>
<para>The following example shows how to delete a JDBC resource in Sun Java
System Application Server Enterprise Edition.</para>
<screen>asadmin> <userinput>delete-jdbc-resource --user admin --passwordfile passwords.txt 
--target domain jdbc/DerbyPool</userinput>
Command delete-jdbc-resource executed successfully.</screen>
</example>
</refsect1>
<refsect1><title>&exit-tt;</title>
<variablelist termlength="medium">
<varlistentry><term>0</term><listitem><para>command executed successfully
</para>
</listitem></varlistentry>
<varlistentry><term>1</term><listitem><para>error in executing the command
</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&also-tt;</title>
<para><link linkend="create-jdbc-resource-1"><citerefentry><refentrytitle>
create-jdbc-resource</refentrytitle><manvolnum>1</manvolnum></citerefentry></link>, <link
linkend="list-jdbc-resources-1"><citerefentry><refentrytitle>list-jdbc-resources
</refentrytitle><manvolnum>1</manvolnum></citerefentry></link></para>
</refsect1>
</refentry>
<?Pub *0000004518>
