ORA-28267: Invalid NameSpace Value - When connected to Oracle 26ai using a dblink
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
- 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
- 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.
- 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/
- Does your application call init_oracle_client()?
using the python-oracledb Thin mode
- 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()
- Ngôn ngữ chính
- Python
- Star
- 455
- Fork
- 119
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của oracle/python-oracledb
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
oracle/python-oracledb#621 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
oracle/python-oracledb#619 ·
-
asyncio: DPY-4011 on connect_async() when the listener closes the original socket after a redirectCó thể đã có người làm @AlexGracas đã nhận 10 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
oracle/python-oracledb#616 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
oracle/python-oracledb#615 ·
-
Fetch character columns as raw bytes in the database character set into data frames (Thick mode)Đang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
oracle/python-oracledb#614 · 1 bình luận ·
Tất cả issue của oracle/python-oracledb
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
EchoTools/nevr-runtime#651 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug frontend rt sev-3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
noontide-co/mainbranch#1211 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[1.x Bug] run-operation --sql reports success but rolls back writes on transaction-capable adaptersĐang mởtriage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
dbt-labs/dbt#16784 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày