Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle errors in Express Edition 21 #31

Closed
RichardJECooke opened this issue Nov 28, 2023 · 2 comments · Fixed by #39
Closed

Oracle errors in Express Edition 21 #31

RichardJECooke opened this issue Nov 28, 2023 · 2 comments · Fixed by #39
Assignees
Labels

Comments

@RichardJECooke
Copy link

RichardJECooke commented Nov 28, 2023

https://github.com/lerocha/chinook-database/blob/master/ChinookDatabase/DataSources/Chinook_Oracle.sql

SQL Error [900] [42000]: ORA-00900: invalid SQL statement

  Error : 900, Position : 0, Sql = conn chinook/p4ssw0rd


/*******************************************************************************
   Create Tables
********************************************************************************/
CREATE TABLE Album
(
    AlbumId NUMBER NOT NULL,
    Title VARCHAR2(160) NOT NULL,
    ArtistId NUMBER NOT NULL,
    CONSTRAINT PK_Album PRIMARY KEY  (AlbumId)
), OriginalSql = conn chinook/p4ssw0rd


/*******************************************************************************
   Create Tables
********************************************************************************/
CREATE TABLE Album
(
    AlbumId NUMBER NOT NULL,
    Title VARCHAR2(160) NOT NULL,
    ArtistId NUMBER NOT NULL,
    CONSTRAINT PK_Album PRIMARY KEY  (AlbumId)
), Error Msg = ORA-00900: invalid SQL statement

  ORA-00900: invalid SQL statement
@lerocha lerocha self-assigned this Jan 28, 2024
@lerocha lerocha added the bug label Jan 28, 2024
lerocha added a commit that referenced this issue Jan 29, 2024
* Issue #31: fixing Oracle SQL script to work with latest version 21

* Fixing build warnings

* Fixing Oracle XE connection string

* Issue #31: fixing Oracle SQL script to work with latest version 21 (part 2)
@lerocha
Copy link
Owner

lerocha commented Jan 29, 2024

Thank you for reporting the issue! The script has been fixed.

@udaybuie
Copy link

@RichardJECooke
i am new to python and struggling to find installation steps for Oracle db and fetching data from it.
its well elaborative for sqlite and i have tried these from this link https://python.langchain.com/docs/use_cases/sql/agents, it worked like a charm.

can you please provide details steps of which database tool you used for oracle to import the Chinook_Oracle.sql and the fetch code as well, as i don't see any oracle related class in langchain_community.utilities. or can you please share some link please, which i can follow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants