Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

ORA-28267: Invalid NameSpace Value - When connected to Oracle 26ai using a dblink

Aperta
#620 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python, sql
Ambito
database

Direzione di ricerca

The report is a Thin-mode connection from Python to a 26ai database that runs select 1 from dual@consultamondb over a link to a 19c server, which fails with ORA-28267 (Invalid NameSpace Value). Start by reproducing with the attached script against a comparable 26ai-to-19c dblink, and check whether the failure is in the driver's authentication or in the server-side link. Done means identifying which side causes ORA-28267 and either fixing the driver path or documenting the required configuration.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Client Library or Database
  1. What versions are you using?
    oracledb-26.0.1

platform.platform: Windows-11-10.0.26300-SP0
sys.maxsize > 2**32: True
platform.python_version: 3.12.10

oracledb.version: 26.0.1

  1. Is it an error or a hang or a crash?
    Error

The database I am initially connecting to is version 26ai Free; the database link created on it points to an Oracle 19c database, and any query returns the error.

  1. What error(s) or behavior you are seeing?

PS C:\oracle\PythonTeste> python.exe .\testeOracle.py
Conectado! Versão do banco: 23.26.3.0.0
code = 28267
full_code= ORA-28267
message = ORA-28267: Invalid NameSpace Value
ORA-02063: preceding line from CONSULTAMONDB
Help: https://docs.oracle.com/error-help/db/ora-28267/

  1. Does your application call init_oracle_client()?

using the python-oracledb Thin mode

  1. Include a runnable Python script that shows the problem.

import os
import sys

import oracledb

USER = os.getenv("ORA_USER", "meu_usuario")
PASSWORD = os.getenv("ORA_PASSWORD", "minha_senha")
DSN = os.getenv("ORA_DSN", "localhost:1521/XEPDB1") # host:porta/service_name

QUERY = """
select 1 from dual@consultamondb
"""

def main():
try:
with oracledb.connect(user=USER, password=PASSWORD, dsn=DSN) as conn:
print(f"Conectado! Versão do banco: {conn.version}")
with conn.cursor() as cur:
cur.execute(QUERY)
colunas = [c[0] for c in cur.description]
print(" | ".join(colunas))
for linha in cur:
print(" | ".join(str(v) for v in linha))
except oracledb.DatabaseError as e:
error, = e.args
print("code =", error.code)
print("full_code=", error.full_code)
print("message =", error.message)
sys.exit(1)

if name == "main":
main()

Lingua principale
Python
Stelle
455
Fork
119
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di oracle/python-oracledb

Tutte le issue di oracle/python-oracledb

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.