Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SQLPLUS Problem beim package kompilieren

Empfohlene Antworten

Veröffentlicht

hiho

habe folgendes Problem.

Habe ein Script welches verschiedene sql Packages kompilieren und installieren soll.

Manchmal gibt es aber fehler wegen der anordnung der Packages (ein Package hängt von einem anderen ab was später kompiliert wird).

Daher möchte ich das Script erweitern indem ich gucke ob alles packages kompiliert wurden oder nicht und dann einen weiteren durchlauf anordne oder das script abbreche.

ich habe das bisher so gemacht, dass ich mit

select count(*) from dbq_objects where status != 'VALID';

abgefragt habe wieviele Objekte den Status VALID nicht haben und die dann gezält.

Nun fängt mein Problem an ...

Mit diesem Ergebnis würde ich gerne weiter arbeiten, indem ich das Ergebnis zB in eine Variable speicher und dann mit IF weiter arbeite.

Leider kenne ich mich mit SQLPLUS kaum aus und weiss garnicht ob das mit variablen etc dort überhaupt funktioniert.

Welche Möglichkeit habe ich die oben genannte Abfrage weiter zu verarbeiten?

MfG

Hi,

ungestestet:


set serveroutput on


DECLARE

        BLAH varchar(20);



BEGIN

        select count(*) into blah from dbq_objects where status != 'VALID';


        if blah = '0' THEN

                dbms_output.put_line('Alles valide');

        END IF;


END;

/

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.