Announcement

Collapse
No announcement yet.

Wie prüfen ob Schema existiert?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wie prüfen ob Schema existiert?

    Hallo,

    wie kann ich mit einem Query aus C# heraus prüfen, ob ein bestimmtes Schema bereits eixtsiert.
    Den connect kann ich mit einem einem User durchführen der über DBA-Rechte verfügt.

    mit
    Code:
    SELECT * FROM sys.schemas WHERE name = 'abc'
    komme ich nicht weiter.
    Da bekomme ich nur ein
    Code:
    ORA-00942: Tabelle oder View nicht vorhanden

    Besten Dank für Eure Hilfe!

    cew3

  • #2
    Code:
    select * from all_users where username='xyz';
    Dim
    Zitat Tom Kyte:
    I have a simple philosophy when it comes to the Oracle Database: you can treat it as a black box and just stick data into it, or you can understand how it works and exploit it as a powerful computing environment.

    Comment


    • #3
      Super! Danke!

      cew3

      Comment

      Working...
      X