У меня есть следующая строка в моем скрипте powershell
& "expdp" "system/manager" "directory=DATAPUMP" "dumpfile=EXPDP_FULL.dmp" "logfile=XPDP_FULL.log "schemas=c##danilo"
Когда я запускаю скрипт, он возвращает ошибку и останавливается
, если я открываю скрипт с Windows PowerShell ISE, я вижуошибка и если я запускаю внутри ISE, она работает, но все равно возвращает эти ошибки (первые шесть строк ниже):
expdp.exe :
At C:\back\script\script.ps1:24 char:2
+ & <<<< "expdp" "system/manager" "directory=DATAPUMP" "dumpfile=EXPDP_FULL_$ORACLE_SID`_$date`.dmp" "logfile=EXPDP_FULL_$ORACLE_SID`_
$date`.log" "schemas=c##danilo"
+ CategoryInfo : NotSpecified: (:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Export: Release 11.2.0.1.0 - Production on Thu Oct 10 10:23:11 2019
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_02": system/******** directory=DATAPUMP dumpfile=EXPDP_FULL_orcl_20192310.dmp logfile=EXPDP_FULL_
orcl_20192310.log schemas=c##danilo
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 0 KB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_02" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_02 is:
C:\BACK\EXPDP_FULL_ORCL_20192310.DMP
Job "SYSTEM"."SYS_EXPORT_SCHEMA_02" successfully completed at 10:27:49
Почему это происходит?