PLS-00201 when running dbms_compression package

Hello,
I am trying to gather compression rate estimates in a 10g database before we upgrade to 11g. I have downloaded the dbms compression package from OTN: http://www.oracle.com/technetwork/database/options/compression/compression-advisor-095705.html
And installed this in my 10g db:
SQL> @dbmscomp.sql
Package created.
Synonym created.
Grant succeeded.
No errors.
SQL> @prvtcomp.plb
Package body created.
Synonym created.
Grant succeeded.
No errors.
When I try to run execute this package as shown in the README file, I get the following error:
SQL> exec dbms_compression.getratio ('SAPAPO','/SAPAPO/MATLOC','OLTP',10);
BEGIN dbms_compression.getratio ('SAPAPO','/SAPAPO/MATLOC','OLTP',10); END;
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'DBMS_COMPRESSION.GETRATIO' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Please let me know if anyone has encountered this error before.
Thank you

jhall wrote:
not sure why the readme referenced the dbms_compression package... guess I should have looked through the package creation script. Thanks for looking at this.I don't think it does -- it's stating that this does the same as DBMS_COMPRESSION, but of course they're just implementing partial functionality of one procedure of DBMS_COMPRESSION. They'd name it something different for that reason, and because it's presence might break an upgrade from 10g to 11g.
I'm not a huge fan of this package
1 The compress_type parameter makes no difference to the code execution, but you still have to supply a valid value.
2 The temporary tables that are created probably ought to be NOLOGGING.
3 The uncompressed table is created without any storage clause so a PCTFREE of 10 is used -- that might be appropriate for OLTP compression (I have no idea) but OLTP compression isn't available in 10g so the metrics would be out anyway. It should probably be hardcoded to a value of 0.
4 There's no error handling to remove the temporary tables in the event of a problem, or detect the pre-existence of the DBMS_COMPRESSION_TEMP_UNCMP or DBMS_COMPRESSION_TEMP_CMP tables.

Similar Messages

  • PLS-00201 when executing insexcpr.sql starter

    Receiving a PLS-00201 on wwutl_htp.scriptclose when executing @insexcpr.sql with the suggested schema in the May PDK of starter. Followed the prior instructions. Also tried granting execute on wwutl_htp to starter.

    Thanks Maxim & Rakesh, that worked.
    It does look like a bug. The return on it's own works with other functions e.g. ASCII etc. but not ORA_HASH.
    The select from dual version is painfully slow (e.g. 25 x times) though so I think I'll use dbms_utility.get_hash_value instead for now. I was planning to use that version in 9i anyway as my app still needs to run on 9i - but I was trying to get the ORA_HASH working for 10g as it is incredibly fast.
    Will definitely log it though.

  • Found ORA-20072: insufficient privileges when run user package

    We use workspace manager
    enable version table : FEED_ADMIN.FEED_SET
    login with my username : KTEERAYUT that have dba privilege
    If we run dbms_wm in sqlplus. It work properly.
    KTEERAYUT@BKKXE > BEGIN
    2 dbms_wm.Beginresolve('D_1_1');
    3 dbms_wm.resolveconflicts('D_1_1','FEED_ADMIN.FEED_SET','','PARENT');
    4 COMMIT;
    5 dbms_wm.rollbackresolve('D_1_1');
    6 COMMIT;
    7 END;
    PL/SQL procedure successfully completed.
    Then try create as procedure with FEED_ADMIN owner.
    create procedure feed_admin.test_resolveconflicts_wm(p_workspace_name varchar2)
    as
    begin
    dbms_wm.Beginresolve(p_workspace);
    dbms_wm.resolveconflicts(p_workspace,'FEED_ADMIN.FEED_SET','','PARENT');
    COMMIT;
    dbms_wm.rollbackresolve(p_workspace);
    COMMIT;
    END;
    Then test run with KTEERAYUT
    KTEERAYUT@BKKXE > BEGIN
    2 feed_admin.test_resolveconflicts_wm('D_1_1');
    3 end;
    4 /
    begin
    ERROR at line 1:
    ORA-20072: insufficient privileges on 'FEED_ADMIN.FEED_SET'
    ORA-06512: at "WMSYS.LT", line 8615
    ORA-06512: at "FEED_ADMIN.TEST_RESOLVECONFLICTS_WM", line 5
    ORA-06512: at line 2
    I already grant all on FEED_ADMIN.FEED_SET to KTEERAYUT but it's still error.
    Anyway It work properly if connect and execute with FEED_ADMIN.
    So Can I run the package with another username? Which privilege that it's required?

    Hi Ben,
    Thanks for reply. Version of workspace manager is 10.2.0.4.4 on oracle 10.2.0.4 platform is window server 2003 sp2
    Below is more detail.
    1. Grant workspace manager privs to both user (KTEERAYUT also have dba privs)
    GRANT EXECUTE ON dbms_lock TO feed_admin;
    GRANT ROLE WM_ADMIN_ROLE TO feed_admin;
    GRANT SELECT ON DBA_WORKSPACE_SESSIONS TO feed_admin;
    begin
    dbms_wm.grantSystemPriv (
    'ACCESS_ANY_WORKSPACE, ' ||
    'MERGE_ANY_WORKSPACE, ' ||
    'CREATE_ANY_WORKSPACE, ' ||
    'REMOVE_ANY_WORKSPACE, ' ||
    'ROLLBACK_ANY_WORKSPACE',
    'feed_admin',
    'YES');
    END;
    GRANT EXECUTE ON dbms_lock TO KTEERAYUT;
    GRANT ROLE WM_ADMIN_ROLE TO KTEERAYUT;
    GRANT SELECT ON DBA_WORKSPACE_SESSIONS TO KTEERAYUT;
    begin
    dbms_wm.grantSystemPriv (
    'ACCESS_ANY_WORKSPACE, ' ||
    'MERGE_ANY_WORKSPACE, ' ||
    'CREATE_ANY_WORKSPACE, ' ||
    'REMOVE_ANY_WORKSPACE, ' ||
    'ROLLBACK_ANY_WORKSPACE',
    'apex',
    'YES');
    END;
    2. FEED_ADMIN create table FEED_SET and enable version for FEED_ADMIN.FEED_SET
    CREATE TABLE feed_admin.feed_set
    (feed_set_id NUMBER PRIMARY KEY,
    feed_set_name VARCHAR2(30)
    GRANT ALL ON feed_admin.feed_set TO kteerayut;
    BEGIN
    dbms_wm.enableversioning('feed_set','VIEW_WO_OVERWRITE');
    END;
    SELECT * FROM ALL_WM_VERSIONED_TABLES;
    INSERT INTO feed_admin.feed_set
    VALUES (1,'new feed set');
    COMMIT;
    3. KTEERAYUT create workspace name : WORK
    BEGIN
    dbms_wm.gotoworkspace('LIVE');
         COMMIT;
         dbms_wm.createworkspace('WORK_TEST');
         dbms_wm.gotoworkspace('WORK_TEST');
         COMMIT;
    END;
    SELECT * FROM feed_admin.feed_set;
    FEED_SET_ID FEED_SET_NAME
    1 new feed set
    4. FEED_ADMIN create procedure name : TEST_REFRESH and grant execute privs to KTEERAYUT
    create or replace procedure FEED_ADMIN.Test_refresh is
    BEGIN
    dbms_wm.Beginresolve('WORK');
    dbms_wm.resolveconflicts('WORK','feed_admin.feed_set','','PARENT');
    COMMIT;
    dbms_wm.Commitresolve('WORK');
    COMMIT;
    dbms_wm.refreshworkspace('WORK');
    end Test_refresh;
    GRANT EXECUTE ON Test_refresh TO KTEERAYUT;
    5. Login with KTEERAYUT.
    5.1 test directly command via sql*plus
    BEGIN
    dbms_wm.Beginresolve('WORK');
    dbms_wm.resolveconflicts('WORK','feed_admin.feed_set','','PARENT');
    COMMIT;
    dbms_wm.Commitresolve('WORK');
    COMMIT;
    dbms_wm.refreshworkspace('WORK');
    END;
    PL/SQL procedure successfully completed.
    5.2 but it will fail when call via procedure
    BEGIN
    feed_admin.Test_refresh;
    END;
    ERROR at line 1:
    ORA-20072: insufficient privileges on 'FEED_ADMIN.FEED_SET'
    ORA-06512: at "WMSYS.LT", line 8615
    ORA-06512: at "FEED_ADMIN.TEST_REFRESH", line 4
    ORA-06512: at line 2
    Regards.

  • Error connecting to Oracle from when running SSIS Package on Windows 64-bit

    Hi.
    I have an SSIS (SQL Server Integration Services) Package that reads a view on Oracle and loads data into table in SQL Server 2005. This is on a Windows 2008 Server (64-bit). SQL Server 2005 with SP3. Oracle Client 11g (32 bit & 64 bit) Runtime Version installed on server. The server has been rebooted since installing OracleClient.
    I get the following error when run as a SQLAgent job 64 Bit (Execution type SQL Server Integration Services Package)...
    Started: 9:29:24 AM
    Error: 2010-01-04 09:29:25.37
    Code: 0xC0202009
    Source: SADM_CURR_Address_and_Cell_Phone-Oracle Connection manager "Oracle/PeopleSoft"
    Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040154.
    An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered".
    End Error
    Error: 2010-01-04 09:29:25.37
    Code: 0xC020801C
    Source: DFT-Oracle to SS2005 OLE DB Source [1]
    Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Oracle/PeopleSoft" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    End Error
    Error: 2010-01-04 09:29:25.37
    Code: 0xC0047017
    Source: DFT-Oracle to SS2005 DTS.Pipeline
    Description: component "OLE DB Source" (1) failed validation and returned error code 0xC020801C.
    End Error
    Error: 2010-01-04 09:29:25.37
    Code: 0xC004700C
    Source: DFT-Oracle to SS2005 DTS.Pipeline
    Description: One or more component failed validation.
    End Error
    Error: 2010-01-04 09:29:25.37
    Code: 0xC0024107
    Source: DFT-Oracle to SS2005
    Description: There were errors during task validation.
    End Error
    DTExec: The package execution returned DTSER_FAILURE (1).
    Started: 9:29:24 AM
    Finished: 9:29:25 AM
    Elapsed: 1.108 seconds
    When I execute this same exact package as a SQLAgent job 32-bit (type Operating System CmdExec) it runs successfully. When I run the package using the Execute Package Utility, it runs successfully. When I am editting the package in BIDS I can connect to Oracle. For both 64 and 32 bit, I use a dtsconfig file which specifies the Oracle connection string and password.
    Someone mentioned on another forum that maybe there is no Oracle ODBC driver for 64-bit Windows. I would assume that the OracleClient 64-bit would include that.
    I hope I have included all info needed. Please let me know if you may have a resolution to this problem.
    Thanks.
    John

    I was trying to transfer data from oracle to sql server 2008 on a daily basis.
    I have very hard time connecting to oracle from ssis package on windows server 2008. I am almost dead and cannot find any help. i was able to connect to oracle using import/export 64 bit feature of SQL Server 2008 using Oracle provider for OLEDB. But I am not sure why the same does not work with BIDS?
    Here's the environment info:
    1. Oracle Client 10g
    2. SQL Server 2008
    3. Windows Server 2008
    Appreciate your help. Please save me.
    Thanks,

  • PLS-00201 when deploying mapping after 9204 upgrade

    We applied the 9204 patch to our owb environment on friday. we are now unable to deploy anything. the error message we are getting is:
    PLS-00201-identifier 'WB_RT_MAPAUDIT' must be declared
    anyone have any suggestions?

    Hi,
    When you went through the installation of the patch, did you follow all post installation steps in order to migrate the runtime environment?
    Did you install a new runtime repository? Have you made sure to update the runtime repository connection to connect to the new runtime repository connection? It sounds like it could be you are still looking at the old runtime repository, whereas all schemas (access schema and target schemas) have been relinked to the new runtime repository schema.
    This would also explain the issue you have at execution time.
    Hope this helps,
    Mark.

  • PLS-00201 when trying to call ORA_HASH from a function

    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
    PL/SQL Release 10.2.0.2.0 - Production
    CORE 10.2.0.2.0 Production
    TNS for Solaris: Version 10.2.0.2.0 - Production
    NLSRTL Version 10.2.0.2.0 - Production
    SQL> select ora_hash('GOOBERS') from dual;
    ORA_HASH('GOOBERS')
    1552467184
    SQL> create or replace function my_hash(x in varchar2) return number is begin return ora_hash(x); end;
    2 /
    Warning: Function created with compilation errors.
    SQL> show errors
    Errors for FUNCTION MY_HASH:
    LINE/COL ERROR
    1/56 PL/SQL: Statement ignored
    1/63 PLS-00201: identifier 'ORA_HASH' must be declared
    If anyone has some ideas on this it would be great to hear from you. Thanks.

    Thanks Maxim & Rakesh, that worked.
    It does look like a bug. The return on it's own works with other functions e.g. ASCII etc. but not ORA_HASH.
    The select from dual version is painfully slow (e.g. 25 x times) though so I think I'll use dbms_utility.get_hash_value instead for now. I was planning to use that version in 9i anyway as my app still needs to run on 9i - but I was trying to get the ORA_HASH working for 10g as it is incredibly fast.
    Will definitely log it though.

  • Error when running MakeDim package

    Hi there,
    I have a really annoying problem with the Admin_MakeDim package in the Examples folder of BPC.
    We have a Data Services process which is populating a staging table which is an exact duplicate of the mbrAccount table. When I run the makedim package to create my dimension from this staging table I don't get any member errors (I did but I fixed them), but I still get this message:
    "Operation is not allowed when the object is closed. : Location (bCheckMemberIsInsertedMidel)
    Location (adoCheckUniqueID)"
    I've searched on the forum, and in the SAP notes, and I came across these SAP notes, which seemed to be relevant:
    1101613
    1099136
    1101529
    1099135
    1107441
    1102829
    However, none of these solutions has helped.
    Has anyone else found and fixed this problem? We are on BPC for MS 7 sp7, on SQL Server 2005.
    Thanks very much in advance,
    Jason

    Hi Jason,
    have you seen also these notes
    http://service.sap.com/sap/support/notes/1704468
    http://service.sap.com/sap/support/notes/1447125
    you wrote note 1099136, you mean 1099135, correct?
    check also the message in google you will found a lot of messages and maybe one could be useful.
    Kind regards
         Roberto

  • Poor performance when running DBMS_STATS package

    Hello,
    I thought I would throw this issue out to the general population as I am stumped.
    I have two identical schemas on two different severs. Database in 9.2.0.6 and for QAS and Production reasons the servers and database settings are identical.
    I am running the DBMS_STATS.GATHER_SCHEMA_STATS package on both databases. On the QAS DB it takes roughly 1.5 hours while on the Production database it takes 8.0 hours.
    Looking at the statspack analysis, the biggest thing to jump out at me is that the temporary tablespace is getting 4.6 Million I/O hits (reads) while the QAS is only getting a few thousand.
    So .... this sort of indicates that something is going on in the PGA which could cause Oracle to use the TEMP tablespace. However when I look in the host performance (using Grid Control) the servers memory, file I/O, and CPU while high are not over 80%.
    Has anyone else seen and issue like this? Any ideas where to look?
    Thanks,
    Chris

    To the extent that you are gathering histograms on the data, Oracle potentially has to do a reasonable amount of sorting. If one machine has substantially more physical RAM, that presumably implies that it has more RAM available for the PGA, which would allow more sorts to happen in memory rather than on disk.
    Depending on how you create a "refresh copy of production" and what parameters you are passing in to DBMS_STATS, it is also possible that the quality assurance database is gathering substantially more histograms than the production database (i.e. you refresh lower environments via export and import rather than doing an RMAN clone and tell Oracle to gather histograms on any columns that currently have histograms).
    Justin

  • Import app to svn when run app package weblogic.xml.process does not exist

    Hi,
    i am versioning my adf application to a server with subversion, the initial import of the application works ok, but when i tried to run it, it does not found all weblogic classes.....
    Error(16,28): package weblogic.xml.process does not exist
    Error(6,25): package weblogic.security does not exist
    Error(8,34): package weblogic.security.services does not exist
    Error(9,33): package weblogic.servlet.security does not exist
    Error(39,36): cannot find class SimpleCallbackHandler
    Error(41,26): cannot find variable Authentication
    Error(42,6): cannot find variable ServletAuthentication
    any ideas??
    thanks.

    Hi,
    i am versioning my adf application to a server with subversion, the initial import of the application works ok, but when i tried to run it, it does not found all weblogic classes.....
    Error(16,28): package weblogic.xml.process does not exist
    Error(6,25): package weblogic.security does not exist
    Error(8,34): package weblogic.security.services does not exist
    Error(9,33): package weblogic.servlet.security does not exist
    Error(39,36): cannot find class SimpleCallbackHandler
    Error(41,26): cannot find variable Authentication
    Error(42,6): cannot find variable ServletAuthentication
    any ideas??
    thanks.

  • Why am I getting Installation Failed error when running Install package?

    Enterprise license holder here. Mac. I've installed ccplauncher, run it, and am now trying to run the Install.pkg. I'm getting an error:
    Already tried running disc permissions, still nothing. Erased all old versions of CS (5, 5.5, 6) from my HD using AppCleaner so no resources or plists left behind before installing CC.

    Jeff,
    You may want to use /Utilities/Console and look at /Library/Logs/Adobe/Installers to see where the failure is actually occurring. Even though it's one install package, it's installing each application in sequence. If only one fails (and all the others succeed) you'll still see the message you received. There can be a lot in the logs, but you can use the Spotlight field to filter out the lines with "return code." Anything other than "0" (zero) indicates something that didn't complete. You can also look for words like "error" or "fail".
    There are a bunch of things that can cause an error. I've sometimes had a problem with packages that include a lot of updates but rebuilding them seemed to fix it. Finding out exactly where the error is happening is a big help when you contact support.
    I realize this isn't a solution, but hope it helps.
    Ric

  • Error when running DBMS_STATS package

    Hi all.
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    PL/SQL Release 9.2.0.4.0 - Production
    CORE 9.2.0.3.0 Production
    TNS for Solaris: Version 9.2.0.4.0 - Production
    NLSRTL Version 9.2.0.4.0 - Production
    I am trying to gather schema stats using dbms_stats package and I see the following:
    SQL> BEGIN DBMS_STATS.gather_schema_stats('SYSADM');
    2 END;
    3 /
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file G534513-1004.txt in EXT_WINDIR not found
    ORA-06512: at "SYS.DBMS_STATS", line 9375
    ORA-06512: at "SYS.DBMS_STATS", line 9857
    ORA-06512: at "SYS.DBMS_STATS", line 10041
    ORA-06512: at "SYS.DBMS_STATS", line 10095
    ORA-06512: at "SYS.DBMS_STATS", line 10072
    ORA-06512: at line 1
    The directory exists but the file is long gone. How can I get around this error?
    Thanks

    See if this helps,
    ERROR WITH EXTERNAL TABLE
    HTH
    Aman....

  • I can not see the InfoObjects when run the Package Import BW Masterdata (BPC 10)

    Hi
    Someone knows a note to fix this issue apparently is security?
    This happens when I login with a user who does not have SAP ALL
    With SAP ALL user I can displayed  the InfoObjects
    Best Regards
    Juan Pablo

    Hi VaraPrasadraju
    Effectively add security objects to a specific role. We test and it worked.
    THANK YOU!!!!
    Best Regards
    Juan Pablo

  • Display text as information when a user runs a package via Excel

    Hi,
    Is it possible to add text to the pop up window a user gets when running a package via the epm add-in? Ideally as per the attached screenshot.
    Thanks,
    Arnold

    Hi Vadim,
    I tried PROMPT(MESSAGE,[label]) but I could see only 3 lines text. how to make it scroll enable for all the test.
    I am using EPM ADDIN SP17 AND Office 213.
    Regards,
    Andrew.

  • How to run multiple packages in one process chain

    Hi,
    we want to run a script logic with badi, followed by a standard move function. The BADI will perform a check and generate an error. If no error occurs, the move can continue ...
    We created our own process chain, which is in fact the combination of a script logic and a move. The data package has underlaying syntax.
    Problem is that the data package does not trigger the process chain ... Nothing happens when running it. When checking the status, nothing gets in here ... We assigned the correct process chain and get message a postivie message when running the package... Is this not possible?
    PROMPT(COPYMOVEINPUT,%SELECTION%,%TOSELECTION%,"Selecteer de gegevens waarvoor een omboeking dient te gebeuren","%CATEGORY_DIM%,%ENTITY_DIM%,PRODUCTIEHUIS,PRODUCTIEWIJZE,NET,KWADRANT")
    INFO(%TEMPNO1%,%INCREASENO%)
    INFO(%ACTNO%,%INCREASENO%)
    INFO(%EQU%,=)
    INFO(%TAB%,;)
    TASK(ZBPC_RUN_LOGIC,TAB,%TAB%)
    TASK(ZBPC_RUN_LOGIC,EQU,%EQU%)
    TASK(ZBPC_RUN_LOGIC,SUSER,%USER%)
    TASK(ZBPC_RUN_LOGIC,SAPPSET,%APPSET%)
    TASK(ZBPC_RUN_LOGIC,SAPP,%APP%)
    TASK(ZBPC_RUN_LOGIC,SELECTION,%SELECTION%)
    TASK(ZBPC_RUN_LOGIC,LOGICFILENAME,STOCK.LGF)
    TASK(/CPMB/CM_CONVERT,OUTPUTNO,%TEMPNO1%)
    TASK(/CPMB/CM_CONVERT,ACT_FILE_NO,%ACTNO%)
    TASK(/CPMB/CM_CONVERT,SAPPSET,%APPSET%)
    TASK(/CPMB/CM_CONVERT,SAPP,%APP%)
    TASK(/CPMB/CM_CONVERT,SELECTION,%SELECTION%)
    TASK(/CPMB/CM_CONVERT,TOSELECTION,%TOSELECTION%)
    TASK(/CPMB/CM_CONVERT,CLEARDATA,0)
    TASK(/CPMB/CLEAR_SOURCE_CUBE,CHECKLCK,1)
    TASK(/CPMB/CLEAR_SOURCE_CUBE,SELECTION,%TOSELECTION%)
    TASK(/CPMB/APPEND_LOAD,INPUTNO,%TEMPNO1%)
    TASK(/CPMB/APPEND_LOAD,ACT_FILE_NO,%ACTNO%)
    TASK(/CPMB/APPEND_LOAD,RUNLOGIC,%RUNLOGIC%)
    TASK(/CPMB/APPEND_LOAD,CHECKLCK,1)
    TASK(/CPMB/APPEND_LOAD,CLEARDATA,0)
    TASK(/CPMB/CLEAR_CUBE,CHECKLCK,1)
    TASK(/CPMB/CLEAR_CUBE,ACT_FILE_NO,%ACTNO%)
    TASK(/CPMB/CLEAR_CUBE,SELECTION,%SELECTION%)

    Hi Sheldon,
    we never have issues when we combine standard objects, like a cliear with a load inforprovider, or the master data integration you mentioned in your document. However, from the moment we combine a script logic with a standard package (like a move) it does not work .The data package contains the task needed for the script and for the move. the process chain is called up but always comes in error in the first step (BPC modify dynamically ) ... there is also no log when checking the view status ...
    I can sent you some screenshots if you like ...
    D

  • Cloning context file on db tier fails when run non-interactively

    Hi all,
    I have a problem where cloning the DB tier context file using adclonectx.pl non-interactively using a pairsfile and noprompt fails in certain circumstances and continually returns this error
    Target System Port Pool [0-99] : RC-00201: Error: Not a valid port pool number
    If we clone from prod or uat (which are on different nodes) to non-prod it works fine, if we clone from a different non-prod environment (on the same node) it fails.
    We can run adclonectx.pl interactively with the same pairsfile and it works, so I copied all of the variables in the log into the pairsfile and ran it non-interactively and it failed with the same error.
    My understanding is that adclonectx.pl uses the source DB context file and the pairsfile to create the new context file. I've tried cloning the context file non-interactively from several different non-prod envs with the same error, so I don't think it's specific to 1 source env.
    It seems to want to prompt for the portpool when it's on the same node as the source environment.
    EBS 12.1.3, DB 11.2.0.3 RAC 2 node on Oracle Linux 5.
    I've raised 3-9540409031 : adclonectx.pl on db Tier errors with RC-00201 when run non-interactively using pairsfile - but haven't got an answer yet.
    This is the pairsfile with everthing in it - generated from an interactive session that worked.
    s_db_ons_remoteport = 6411
    s_cmanport = 1532
    s_clusterInterConnects = dxd1db01-ib
    s_dbhost = dxd1db01-ib
    s_dbSidLower = ebscnv1
    s_dbhome4 = +DATA_DXD1
    s_dbhome3 = +DATA_DXD1
    s_dbSid = EBSCNV1
    s_dbhome2 = +DATA_DXD1
    s_dbhome1 = +DATA_DXD1
    s_isAdmin = YES
    s_clonestage = /u01/EBSDEV/product/11.2.0/appsutil/clone
    s_jretop = /u01/EBSDEV/product/11.2.0/jdk/jre
    s_db_rollback_segs = NOROLLBACK
    s_db_util_filedir = /u01/EBSCNV/tmp
    s_isForms = YES
    s_undo_tablespace = APPS_UNDOTS1
    s_temp = /u01/EBSDEV/product/11.2.0/appsutil/temp
    s_database_type = RAC
    s_dbuser = orebscnv
    s_instName = EBSCNV1
    s_dbGlnam = EBSCNV
    s_domainname = mgmt.shared.health.nz
    s_dbgroup = oinstall
    s_hostname = dxd1db01-ib
    s_jdktop = /u01/EBSDEV/product/11.2.0/jdk/jre
    s_isConc = YES
    s_instThread = 1
    s_dbport = 1532
    s_isWeb = YES
    s_dbCluster = true
    s_contextname = EBSCNV1_dxd1db01-ib
    s_dbClusterInst = 2
    s_dbdomain = mgmt.shared.health.nz
    s_base = /u01/EBSCNV
    s_db_ons_localport = 6311
    s_contextfile = /u01/EBSCNV/tmp/EBSCNV1_dxd1db01-ib.xml
    s_db_oh = /u01/EBSDEV/product/11.2.0
    s_instNumber = 1
    s_virtual_hostname = dxd1db01-ib
    s_display = y
    this is the adclonectx.pl comand i use - I've checked all the env variables before running and they're all good
    perl ./adclonectx.pl \
    contextfile=$SRCCTX \
    template=$ORACLE_HOME/appsutil/template/adxdbctx.tmp \
    outfile=$NEWCTX \
    pairsfile=$PAIRSFILE \
    initialnode
    when run non-interactively i use this command  - and as mentioned above this works under certain circumstances
    dummypw=dummypw
    echo \$dummypw | perl ./adclonectx.pl \
    contextfile=$SRCCTX \
    template=$ORACLE_HOME/appsutil/template/adxdbctx.tmp \
    outfile=$NEWCTX \
    pairsfile=$PAIRSFILE \
    initialnode noprompt
    Any ideas, it's got 3 DBAs stumped...

    That makes sense to me ... the pool parameter should be in the pairsfile, .. or in the parameters when calling it at command line
    You can force the pool to be changed, even when you're on the same server. Actually, I would use different pools for any environment, different server or not. And, avoid the default pool as well. If you do it this way, one of the advantages is that you spot issues - like the one you have - much much earlier. In that case, you would need that extra parameter on every run.

Maybe you are looking for