Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#620 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python, sql
Área
database

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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()

Lenguaje dominante
Python
Estrellas
455
Forks
119
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de oracle/python-oracledb

Todos los issues de oracle/python-oracledb

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.