Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8611865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:28:52+00:00 2026-06-12T04:28:52+00:00

I executed this script in DB2 10.1, and after that, I do not know

  • 0

I executed this script in DB2 10.1, and after that, I do not know how to reestablish the database connection:

script.sql

--#SET TERMINATOR @
SET CURRENT SCHEMA BLOCK_DB @
CREATE PROCEDURE BLOCK_DB.A ()
BEGIN
END @
CREATE PROCEDURE BLOCK_DB.B ()
BEGIN
 CALL BLOCK_DB.A ();
END @
--#SET TERMINATOR ;
UPDATE DB CFG USING CONNECT_PROC BLOCK_DB.B;
DROP PROCEDURE BLOCK_DB.A ();
CONNECT RESET;

I executed like this

db2 -tf script.sql

After that, I tried to reconnect, but it was unsuccessful.

db2 connect to sample

DO NOT TRY THIS IN A PRODUCTION ENVIRONMENT.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:28:53+00:00Added an answer on June 12, 2026 at 4:28 am

    Simply reset the value of CONNECT_PROC:

    db2 "update db cfg for <db> using connect_proc ''"
    

    You do not need to have a database connection to execute this statement. This will set CONNECT_PROC back to the default (NULL), and you’ll be able to connect to the database again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a script task that executes a dynamically created SQL restore statement. This
I'm trying to make a bash script that's going to backup a db2 database
This is what I have... a= document.createElement('div'); a.innerHTML=<script>alert(1)</script>; document.body.appendChild(a); The alert(1) doesnt get executed.
I want to execute this script (view source) that uses Google Translate AJAX API
I have a complex query that gets executed like this: if ($stmt = $dbi->prepare($pt_query))
I have a <script> that contains this line: var tbl = document.getElementById(<%= this.tblSelection.ClientID %>);
How would I execute a sql script on a remote db2 server? In MySQL
I have inherited this sed script snippet that attempts to remove certain empty spaces:
I'm using SQL Server MS. I'm having trouble writing this script: CREATE VIEW rental_view
I have PHP web script that have to be executed periodically, using web browser.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.