Subversion Repositories DevTools

Rev

Blame | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'   _DeletePkgReplica.asp
'
'
'=====================================================
%>
<%
Option explicit
Response.Expires = 0
%>
<!--#include file="common/conf.asp"-->
<!--#include file="common/globals.asp"-->
<!--#include file="common/formating.asp"-->
<!--#include file="common/qstr.asp"-->
<!--#include file="common/common_subs.asp"-->
<!--#include file="common/_form_window_common.asp"-->
<%
'------------ ACCESS CONTROL ------------------
%>
<!--#include file="_access_control_general.asp"-->
<!--#include file="_access_control_login.asp"-->
<%
'------------ VARIABLE DEFINITION -------------
'------------ CONSTANTS DECLARATION -----------
'------------ VARIABLE INIT -------------------
'------------ CONDITIONS ----------------------
'----------------------------------------------
%>
<%
'--------------------------------------------------------------------------------------------------------------------------
Sub DeletePkgReplica (server_id)
        On Error Resume Next
        OraDatabase.Parameters.Add "SERVER_ID_LIST",    server_id,      ORAPARM_INPUT, ORATYPE_NUMBER 
        objEH.TryORA ( OraSession )
        OraDatabase.ExecuteSQL "BEGIN PK_BLATAPI.DELETE_PKG_REPLICA ( :SERVER_ID_LIST ); END;"
        objEH.CatchORA ( OraSession )   
        OraDatabase.Parameters.Remove "SERVER_ID_LIST"
End Sub
'--------------------------------------------------------------------------------------------------------------------------
%>
<%
'**************************** M  A  I  N ******************************
' --- Form is Valid ---
Call DeletePkgReplica(Request("server_id"))

If objEH.Finally Then
        Call OpenInWindow ("admin_blat_machines.asp")
End If
'**********************************************************************
%>
<%
'------------ RUN AFTER CODE RUN --------------
'----------------------------------------------
'----------------------------------------------
Call Destroy_All_Objects
%>