I am using ora2pg tool for database migration(oracle to PostgreSQL). I have to exclude some object from export, For that i have made changes accordingly in ora2pg config file(add comma separate list in exclude directive). But when i execute this ora2pg config file it will export all object for me(Not exclude object that i added in exclude directive). Other directives working fine. Please help me to solve this problem.
Ora2pg ALLOW and EXCLUDE directive not working
3.6k Views Asked by Gourav Saklecha At
2
There are 2 best solutions below
0
Georg Moser
On
You must not use comma to separate your tables. Use blanks instead:
EXCLUDE TABLE1 TABLE2 TABLE3
will exclude these tables (TABLE1, TABLE2, TABLE3) from export.
See: https://ora2pg.darold.net/documentation.html#Limiting-objects-to-export
Related Questions in DATABASE
- How to add the dynamic new rows from my registration form in my database?
- How to store a date/time in sqlite (or something similar to a date)
- Problem with add new attribute in table with BOTO3 on python
- When an E-R attribute should be perceived as a relationship attribute or as an entity set attribute?
- SQLAlchemy: efficient relationship loading in 3-way many-to-many relationship
- Cannot connect to Postgres Database when running Quarkus Tests with Gitlab ci
- Local or remote database with react-native?
- I want to edit a specific row in database
- How to enter data in mongodb array at specific position such that if there is only 2 data in array and I want to insert at 5, then rest data is null
- Open Web Library
- database login.py and register.py error showing 404 file not found and doesn't work
- SQL71561: SqlComputedColumn: When column selected
- Liquibase as SaaS To Configure Multiple Database as Dynamic
- Updated max input vars but table still shows error
- Spring does not map set of roles
Related Questions in ORACLE
- sqlplus myusername/mypassword@ORCL not working with Oracle on Docker
- Oracle setting up on k8s cluster using helm charts enterprise edition
- Oracle Managed Data Access Client can't work from IIS but work for local debug environment
- If composite indexing created - indexing is called?
- Oracle Http server ISNT-07551
- why here not creating table?
- Data migration from Oracle Database Clob to GCP Bucket
- SQL Alchemy custom type, forcing blob bind parameter
- How to send message to syslog agent in plsql
- Whatever the data available in previous record it should add to the new record
- I have an Oracle SQL query that is giving me a "ORA-00918: column ambiguously defined" error on a line that is a comment line
- 'ORA-12170: TNS:Connect timeout occurredORA-12170: TNS:Connect timeout occurred' ERROR while working on oracle with laravel
- Is their any way i can open parallel query tabs
- VSCode Libraries not showing for New Java Project
- I can't ssh to my instance, Connection refused
Related Questions in POSTGRESQL
- Only the first SQL script gets executed inside Docker Postgres container
- Compare fields in two tables
- Hibernate ClobJdbcType bindings: what are the diferences?
- Postgres && statement Error in Mybatis Mapper?
- Can this query be optimized? (Choosing a random row to insert, that excludes previously inserted Rows)
- Connection terminated unexpectedly while performing multi row insert using pg-promise
- Processing multiple forms in nodejs and postgresql
- How to copy data from SQLite to postgreSQL?
- PGAdmin4 configured behind a reverse proxy but unable to connect to Postgresql server
- Updates to pgsodium encrypted values don't use specified key_id
- Connecting to Postgres running in a Docker container using psql
- Can't connect to local postgresql server from my docker container
- Django Arrayfield migration to cloud sql (Postgresql) not creating the column
- Get list of matching keywords for each post
- docker-compose can't reset postgresql database
Related Questions in DATABASE-MIGRATION
- Django migrations not creating tables on PostgreSQL despite successful execution
- How to specify a float/decimal value for a column inside an insert in liquibase changelog?
- Run the migration script in the container
- Is it possible to downgrade an Entity Framework Core code-first migration without the migration present in the code base?
- ASP.NET Core SQL Server connection - migrations
- Couldn't find driver exception when running php artisan migrate
- SQL Database in production migration - Best approach
- How to setup Flyway migrations for multiple schemas
- mysql to postgres query convertion - COLUMNS.COLUMN_TYPE and information_schema.SEQ_IN_INDEX
- golang-migrate command "freezes" during migrations, takes too much time to migrate (10 minutes for 10 rows)
- Performance Issues After Migrating from MariaDB 10.3.39 to 10.6.16 Due to Changes in Query Execution Plan
- How to generate migration scripts in EF6 with custom SQL?
- Unable to create a 'DbContext' of type ''. The exception 'Unable to resolve service for type 'Microsoft.EntityFrameworkCore.DbContextOptions`1[Comm
- node-pg-migrate not able to run migrations from config defined with .env variables
- django.db.utils.ProgrammingError: column app_table.field does not exist
Related Questions in ORA2PG
- ora2pg out of memory error - after every table
- Custom Script Extension for Linux - Not able to run ora2pg command
- Ora2pg FATAL: ERROR: null value in column "entity$code_" violates not-null constraint
- Issue with ora2pg exclude directive
- I want to convert a user defined datatype from ORACLE in to a working POSTGRE user defined data?
- How to extract public DBlink with ora2pg
- ora2pg - Strawberry perl - Can't load module Oracle.xs.dll
- Oracle Db to PostgreSQL conversion using ora2pg
- how to find and fix non utf8 character in oracle tables and fix the data for migration to postgres
- Ora2PG REPLACE_AS_BOOLEAN property and exclude one column by replacing
- UUID instead of GUID (Oracle to Postgres)
- Installing ORA2PG tool on windows 12R2 server
- Oracle to_char numeric masking to postgres
- ora2pg (Unicode surrogate U+DBC0 is illegal in UTF-8)
- Ora2pg ALLOW and EXCLUDE directive not working
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
you can try this, for example, for exclude tables:
ora2pg -c ora2pg.conf -t TABLE -e tables_excludes -o junotele.sql -b schema/tables/