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

Ora2pg error: FATAL: bad export type using input file option #1057

Open
naveenjul29 opened this issue Dec 30, 2020 · 7 comments
Open

Ora2pg error: FATAL: bad export type using input file option #1057

naveenjul29 opened this issue Dec 30, 2020 · 7 comments

Comments

@naveenjul29
Copy link

naveenjul29 commented Dec 30, 2020

Hi Darold,

I am trying to export Materialized views using input file option and got the below error:

Mview Capture

Below query I used:

CREATE MATERIALIZED VIEW "MV_EMP" ("EMPNO", "ENAME", "JOB", "MGR", "HIREDATE", "SAL", "COMM", "DEPTNO") AS SELECT "EMP1"."EMPNO","EMP1"."ENAME","EMP1"."JOB","EMP1"."MGR","EMP1"."HIREDATE","EMP1"."SAL","EMP1"."COMM","EMP1"."DEPTNO" FROM "EMP1";

Can you please let me know what are all the objects we cannot use with input file option?

@darold
Copy link
Owner

darold commented Dec 30, 2020

Yes this feature have not been implemented yet. Here are the export type that can be used from a file:

  • TABLE
  • SEQUENCE
  • GRANT
  • TABLESPACE
  • VIEW
  • TRIGGER
  • QUERY
  • FUNCTION
  • PROCEDURE
  • PACKAGE
  • TYPE
  • SYNONYM
  • DIRECTORY
  • DBLINK
  • LOAD
    I mark the issue as needing enhancement.

@naveenjul29
Copy link
Author

Thank you Darold

@jkalta
Copy link

jkalta commented Feb 1, 2024

Hi Darold,
Any update on this enhancement?

@darold
Copy link
Owner

darold commented Feb 1, 2024

Hi, I have not planned to work on this on the near future.

@srinilakshmi
Copy link

@darold I am getting the same error for SHOW_REPORT too.

for SQL Server (scripts).

ora2pg -t SHOW_REPORT --dump_as_json -i ""

How do I get around with this?

@darold
Copy link
Owner

darold commented Oct 9, 2024

The -i option can not be used with the SHOW_REPORT action, SHOW_REPORT need a connection to an online database.

@srinilakshmi
Copy link

Thank you very much @darold. I have opened another issue 1828 please let me know if you can. TIA

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

No branches or pull requests

4 participants