
While working with Oracle E-Business Suite 19c, generating CDB TNS Admin entries using the txkGenCDBTnsAdmin.pl script may fail on Linux with the following error:
Can’t locate TXK/ARGS.pm in @INC (you may need to install the TXK::ARGS module)
This blog explains the cause and a simple solution to make the script run successfully.
Issue
run the following commands:
cd /u01/8051/db/19.3.0/appsutil
source ./txkSetCfgCDB.env -dboraclehome=/u01/8051/db/19.3.0
cd /u01/8051/db/19.3.0/appsutil/bin
/u01/8051/db/19.3.0/perl/bin/perl txkGenCDBTnsAdmin.pl -dboraclehome=/u01/8051/db/19.3.0 -cdbname=EBSCDB -cdbsid=ERPCDB -dbport=1572 -outdir=/u01/8051/db/19.3.0/appsutil/log -virtualhostname=ebs
Error returned:
Can’t locate TXK/ARGS.pm in @INC (you may need to install the TXK::ARGS module) (@INC contains: /u01/8051/db/19.3.0/perl/lib/site_perl/5.28.1/x86_64-linux-thread-multi /u01/8051/db/19.3.0/perl/lib/site_perl/5.28.1 /u01/8051/db/19.3.0/perl/lib/5.28.1/x86_64-linux-thread-multi /u01/8051/db/19.3.0/perl/lib/5.28.1) at txkGenCDBTnsAdmin.pl line 72.
BEGIN failed–compilation aborted at txkGenCDBTnsAdmin.pl line 72.
Solution
Start a Fresh Session
- Open a new terminal session
- Log in as the db user
Set Environment Cleanly
cd /u01/8051/db/19.3.0/appsutil
source ./txkSetCfgCDB.env -dboraclehome=/u01/8051/db/19.3.0
Run the Script
/u01/8051/db/19.3.0/perl/bin/perl txkGenCDBTnsAdmin.pl -dboraclehome=/u01/8051/db/19.3.0 -cdbname=EBSCDB -cdbsid=EBSCDB -dbport=1572 -outdir=/u01/8051/db/19.3.0/appsutil/log -virtualhostname=ebs
Script should run successfully without the TXK::ARGS.pm error
Conclusion
The “Can’t locate TXK/ARGS.pm” error in Oracle 19c txkGenCDBTnsAdmin.pl is environment-related, not a missing module.
Permanent practice for Oracle 19c DB-Tier scripting:
- Open a fresh Putty session
- Source environment only once
- Run required Perl scripts
This ensures smooth execution and avoids Perl library path conflicts




Visit Today : 51
Visit Yesterday : 45
This Month : 342
This Year : 2442
Total Visit : 9838
Hits Today : 66
Total Hits : 12930
Who's Online : 5