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

Doesn't extract ddl from dmp in case of not all schemas are chosen for import #17

Open
bigstinky86 opened this issue Mar 15, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@bigstinky86
Copy link
Contributor

bigstinky86 commented Mar 15, 2019

When not all schemas are chosen for import it generates the command below:

export ORACLE_HOME=/jv01/app/oracle/product/11.2.0/dbhome_1;export ORACLE_SID=SOMENAME; /jv01/app/oracle/product/11.2.0/dbhome_1/bin/impdp TO_AGENT/'TO_AGENT' DUMPFILE=from_agent_01-01-2011.dmp schemas=FROM_AGENT remap_schema=null:TO_PUB,null:TO_CORE,null:TO_CATA,null:TO_CATB,FROM_AGENT:TO_AGENT remap_tablespace=USERS:USERS DIRECTORY=DB_DUMPS_DIR logfile=import_data_TO_AGENT.log skip_unusable_indexes=YES content=DATA_ONLY

Code which generates the command (from build.xml):

if(project.getProperty(schema+".user.remap") !== 'null') {
	result=result + project.getProperty(schema+".user.remap")+":"+ project.getProperty(schema+".db.user");
	if(i < (ii-1))
	{
		result=result + ",";
	}
}

The command fails with error below and schema structure doesn't create;

ORA-39001: invalid argument value
ORA-39046: Metadata remap REMAP_SCHEMA has already been specified.
Remote command failed with exit status 1

Tried to specify other schemas as null but got the same outcome.

Due to the

<param name="fail_on_error" value="false"/>

The macros generateSQLscript doesn't fail so job continue and fails on dmp import step with an error

/atg-module-datacut/build.xml:893: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
@bigstinky86 bigstinky86 added the bug Something isn't working label Mar 15, 2019
@bigstinky86 bigstinky86 changed the title Doesn't extract ddl from dmp in case of not all schemas is chosen for import Doesn't extract ddl from dmp in case of not all schemas are chosen for import Mar 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant