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 support #25

Open
smil2k opened this issue Sep 29, 2017 · 4 comments
Open

Oracle support #25

smil2k opened this issue Sep 29, 2017 · 4 comments

Comments

@smil2k
Copy link

smil2k commented Sep 29, 2017

Hi,

You can try oracle support using Oracle XE under this page:
http://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index.html

It is free of charge.

It runs in docker also, makes installation much easier:
https://hub.docker.com/r/wnameless/oracle-xe-11g/

Cheers,

Tamas

@a-langer
Copy link

For example, Oracle not supported "CREATE IF NOT EXIST":

TableUtils.createTableIfNotExists(cs, Account.class);

this returns error:

ORA-00955: name is already used by an existing object

@a-langer
Copy link

Oracle does not support keyword "LIMIT". Using "limit" method:

limit(Integer maxRows)

results in an error.
Instead, oracle supports ROWNUM:

select * from Accouns where ROWNUM <= 5

or FETCH

select * from Accouns FETCH NEXT 5 ROWS ONLY;

FETCH can be used in the "orderByRaw" method.

orderByRaw("ID DESC FETCH NEXT 5 ROWS ONLY")

ormlite does not take into account these differences.

@j256
Copy link
Owner

j256 commented Nov 19, 2020

Sorry for the long delay on this. Thanks. I'll take a look.

@benoit-dubreuil
Copy link

I coded this simple backup in the meantime :

public class CustomOracleDatabaseType extends OracleDatabaseType {

    @Override
    public boolean isLimitSqlSupported() {
        return false;
    }
}

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

No branches or pull requests

4 participants